Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350211 - Generated source folder are not added in to .classpath
Summary: Generated source folder are not added in to .classpath
Status: CLOSED DUPLICATE of bug 350299
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 01:53 EDT by honnix CLA
Modified: 2021-04-19 13:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/