// Run with VMWarguments: "-DfileMap=src/main/resources/lumify.json"
// Arguments: "lumify.json"
// Working Dir: "$MODULE_DIR$"
public static void main(String[] args) {
try {
ClientOpts opts = new ClientOpts();
opts.setUri("https://localhost:8889");
Map<String, String> properties = new HashMap<String, String>();
properties.put("fileMap", System.getProperty("fileMap"));
opts.setProperties(properties);
JavaCodeGenerator generator = new JavaCodeGenerator();
generator.generate(opts);
generator.fixFiles();
} catch (Exception ex) {
throw new RuntimeException("generate fail", ex);