| Summary: | Generated source folder are not added in to .classpath | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | honnix <honnix.liang> |
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | igor |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
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 *** |
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>