Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350211

Summary: Generated source folder are not added in to .classpath
Product: z_Archived Reporter: honnix <honnix.liang>
Component: m2eAssignee: 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:

Description honnix CLA 2011-06-24 01:53:01 EDT
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>
Comment 1 Igor Fedorenko CLA 2011-06-27 01:44:45 EDT
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 ***
Comment 2 Denis Roy CLA 2021-04-19 13:25:54 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/