I finally made it works with your help (thanks atokle). m2e with
buildhelper connector plus this:
            <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.4</versionRange>

                                                           <goals>

                                                                 <goal>
wsdl2java</goal>

                                                           </goals>

                                                     </pluginExecutionFilter
>

                                                     <action>

                                                           <execute></
execute>

                                                     </action>

                                               </pluginExecution>

                                         </pluginExecutions>

                                   </lifecycleMappingMetadata>

                             </configuration>

                        </plugin>

                  </plugins>

            </pluginManagement>

            <plugins>

                  <plugin>

                        <groupId>org.apache.cxf</groupId>

                        <artifactId>*cxf*-*codegen*-*plugin*</artifactId>

                        <executions>

                             <execution>

                                   <id>generate-sources</id>

                                   <phase>generate-sources</phase>

                                   <configuration>

                                         <defaultOptions>

                                               <noAddressBinding>true</
noAddressBinding>

                                         </defaultOptions>

                                         <wsdlRoot>${wsdl.dir}</wsdlRoot>

                                   </configuration>

                                   <goals>

                                         <goal>wsdl2java</goal>

                                   </goals>

                             </execution>

                        </executions>

                  </plugin>

                  <plugin>

                        <groupId>org.codehaus.mojo</groupId>

                        <artifactId>build-helper-*maven*-*plugin*</
artifactId>

                        <executions>

                             <execution>

                                   <id>add-source</id>

                                   <phase>generate-sources</phase>

                                   <goals>

                                         <goal>add-source</goal>

                                   </goals>

                                   <configuration>

                                         <sources>

                                               <source>
target/generated-sources/cxf</source>

                                         </sources>

                                   </configuration>

                             </execution>

                        </executions>
                  </plugin>

On 16 December 2011 21:49, Daniel Kulp <[email protected]> wrote:

>
> It looks like starting with 1.1 of m2e, plugins themselves can embed
> lifecycle
> mappings:
>
> http://wiki.eclipse.org/M2E_compatible_maven_plugins
>
> That might be something worth looking into.   A patch to accomplish that
> would
> be more than welcome.   :-)
>
> Doesn't really solve the issues for 1.0, but going forward it could help.
>
> Dan
>
>
>
> On Thursday, December 15, 2011 12:55:36 PM jerry.bowman wrote:
> > Having the same problem, so I added the eclipse.m2e lifecycle plugin to
> > override the life-cycle as suggested. But now I get this error showing
> up on
> > the plugin to execute the cxf codegen:
> >
> > Description   Resource        Path    Location        Type
> > Execution default of goal
> org.apache.cxf:cxf-codegen-plugin:2.5.0:wsdl2java
> > failed.
> >
> (org.apache.cxf:cxf-codegen-plugin:2.5.0:wsdl2java:default:generate-sources)
> > pom.xml       /empi-core-internal-service     line 126        Maven
> Build Problem
> >
> > I get no logs, no other messages, nada. I changed the action to <ignore
> />
> > for now and just manually run from the command line when I need to
> > regenerate the sources. At least I don't have any errors showing in the
> PO
> > for the unsupported goal anymore.
> >
> > Any ideas on the above message or where else I might look for additional
> > information?
> >
> > Thanks!
> >
> > --
> > View this message in context:
> >
> http://cxf.547215.n5.nabble.com/Cxf-maven-plugin-on-m2e-indigo-tp5022754p50
> > 78663.html Sent from the cxf-user mailing list archive at Nabble.com.
> --
> Daniel Kulp
> [email protected] - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>

Reply via email to