Plugin execution
The following mvn command can be used to explicitly generate the Java classes:
After the plugin execution you should find the generated Java classes in the folder you specified through the configuration property targetPath.
Alternatively the default maven lifecycle phase generate-sources can be called - therefore the plugin configuration has to be as follows
Add generated classes to sources
Option 1
Add the folder manually as source-folder within your IDE.
Option 2
Generate classes directly into the regular source folder by defining src/main/java
as targetPath.
Note: with this solution you will probably end up having the generated files committed to the repo
Option 3
Add the resources using the build-helper-maven-plugin:
Last updated