Community
Participate
Working Groups
Generate java source code from schema using maven-jaxb2-plugin. Code can be generated, by target/generated-sources/xjc is not added to .classpath file. Lifecycle mapping has also been defined. <pluginExecution> <pluginExecutionFilter> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <versionRange>[0.7.5,)</versionRange> <goals> <goal>generate</goal> </goals> </pluginExecutionFilter> <action> <execute /> </action> </pluginExecution>
As explain in [1], blindly running code generation maven plugins inside eclipse workspace is almost certainly not a good idea. [1] http://wiki.eclipse.org/M2E_plugin_execution_not_covered *** This bug has been marked as a duplicate of bug 350299 ***
Moved to https://github.com/eclipse-m2e/m2e-core/issues/