Great! I'll try that as soon as I can. Thanks a lot. On 1 December 2011 00:53, atokle <[email protected]> wrote:
> It's because the new m2e plugin changed behavior to avoid some problems in > the old m2eclipse plugin. It does now not execute all lifecycles if not a > extension for the plugin is installed, or if it's not specifically told to > execute them. More info in pages linked here: > http://wiki.eclipse.org/Category:M2E > > One of the phases that is not executed more, and gives error in the pom is > the generate-sources phase used by cxf-codegen-plugin. Put in the following > m2e instruction in the pluginManagement of your pom to instruct m2e to > execute the plugin when you do a "maven->Update project configuration" in > eclipse. It will then remove the error, and generate the sources. > > It will still not make to folder with generated source a source folder. > Then > you have to add the build-helper-maven-plugin > > <pluginManagement> > <plugins> > <plugin> > > <groupId>org.eclipse.m2e</groupId> > > <artifactId>lifecycle-mapping</artifactId> > <version>1.0.0</version> > <configuration> > <lifecycleMappingMetadata> > <pluginExecutions> > > <pluginExecution> > > <pluginExecutionFilter> > > <groupId>org.apache.cxf</groupId> > > <artifactId>cxf-codegen-plugin</artifactId> > > <versionRange>[2.4.0,)</versionRange> > > <goals> > > <goal>wsdl2java</goal> > > </goals> > > </pluginExecutionFilter> > > <action> > > <execute></execute> > > </action> > > </pluginExecution> > </pluginExecutions> > </lifecycleMappingMetadata> > </configuration> > </plugin> > </plugins> > </pluginManagement> > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Cxf-maven-plugin-on-m2e-indigo-tp5022754p5037155.html > Sent from the cxf-user mailing list archive at Nabble.com. >
