I have replaced the example SimpleObject class with the example in the readme, and the code generates fine - looks good.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project strategybuilder-dom: Compilation failure: Compilation failure:
[ERROR] /home/anton/Documents/software/isis/dom/src/main/java/domainapp/dom/app/homepage/HomePageViewModel.java:[21,36] package domainapp.dom.modules.simple does not exist
[ERROR] /home/anton/Documents/software/isis/dom/src/main/java/domainapp/dom/app/homepage/HomePageViewModel.java:[22,36] package domainapp.dom.modules.simple does not exist
[ERROR] /home/anton/Documents/software/isis/dom/src/main/java/domainapp/dom/app/homepage/HomePageViewModel.java:[38,17] cannot find symbol
[ERROR] symbol: class SimpleObject
[ERROR] location: class domainapp.dom.app.homepage.HomePageViewModel
[ERROR] /home/anton/Documents/software/isis/dom/src/main/java/domainapp/dom/app/homepage/HomePageViewModel.java:[46,5] cannot find symbol
[ERROR] symbol: class SimpleObjects
[ERROR] location: class domainapp.dom.app.homepage.HomePageViewModel
[ERROR] /home/anton/Documents/software/isis/dom/src/main/java/domainapp/dom/app/homepage/HomePageViewModel.java:[21,36] package domainapp.dom.modules.simple does not exist
[ERROR] /home/anton/Documents/software/isis/dom/src/main/java/domainapp/dom/app/homepage/HomePageViewModel.java:[22,36] package domainapp.dom.modules.simple does not exist
[ERROR] /home/anton/Documents/software/isis/dom/src/main/java/domainapp/dom/app/homepage/HomePageViewModel.java:[38,17] cannot find symbol
[ERROR] symbol: class SimpleObject
[ERROR] location: class domainapp.dom.app.homepage.HomePageViewModel
[ERROR] /home/anton/Documents/software/isis/dom/src/main/java/domainapp/dom/app/homepage/HomePageViewModel.java:[46,5] cannot find symbol
[ERROR] symbol: class SimpleObjects
[ERROR] location: class domainapp.dom.app.homepage.HomePageViewModel
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :strategybuilder-dom
Do I need to add the path to the generated source in the pom? If yes, where/how should I do that? I have tried adding:
<build>
<resources>
<resource>
<directory>target/generated-sources/isis/</directory>
</resource>
</resources>
but this did not help.