CXF hasn’t “supported” Maven 2.x for a while. It may have worked, but that would have been completely by accident, not something that was intentional or tested. Building CXF has required 3.0.x for a very long time due to some resolution issues with Maven 2.x. Since it wasn’t possible (easily) to really test CXF with Maven 2.x, we stopped claiming to support it.
With 3.1.x, we changed the plugin to use the new maven annotations and use a few other newer features that does require Maven 3.1.x or newer. Dan > On Nov 24, 2015, at 8:55 AM, Julien Charon <[email protected]> wrote: > > Hi, > > > Just a short question: we are currently using CXF & cxf-codegen-plugin > version 3.0.6 to execute the wsdl2java goal with maven 2.2.1. > Now we wanted to upgrade to CXF 3.1.4 and experience problems when building > our project: > > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Internal error in the plugin manager executing goal > 'org.apache.cxf:cxf-codegen-plugin:3.1.4:wsdl2java': Unable to load the mojo > 'org.apache.cxf:cxf-codegen-plugin:3.1.4:wsdl2java' in the plugin > 'org.apache.cxf:cxf-codegen-plugin'. A required class is missing: > Lorg/apache/maven/repository/RepositorySystem;org.apache.maven.repository.RepositorySystem > > This looks like maven 2 is no longer supported cxf-codegen-plugin 3.1.4. Is > this correct? > I'm just wondering because informations in the CXF documentation are kind of > confusing: > > - https://cxf.apache.org/cxf-306-release-notes.html says that maven > 3.0.6<https://cxf.apache.org/cxf-306-release-notes.html%20says%20that%20maven%203.0.6> > or later is required, but works with 2.2.1 > > - https://cxf.apache.org/cxf-314-release-notes.html says that maven > 3.1.4<https://cxf.apache.org/cxf-314-release-notes.html%20says%20that%20maven%203.1.4> > or later is required > > - https://cxf.apache.org/download.html points to maven 2 artifacts > (bottom of the page) > > - 3.1.4 maven artifacts are available on maven 2 repo > http://repo1.maven.org/maven2/ > > Any help / clarification would be appreciated. > > > Best regards, > Julien > > Avitech GmbH > Engineering AxL > Tel.: +49 (0)7541/282-177 > Fax: +49 (0)7541/282-199 > e-mail: [email protected]<mailto:[email protected]> > ________________________________________________ > Avitech GmbH > Principal Office: Bahnhofplatz 1 | 88045 Friedrichshafen | Germany > Court Registration: Amtsgericht Ulm | HRB 728293 > Geschäftsführer/Managing Director: Antonio Maria Gonzalez Gorostiza > http://avitech.aero<http://avitech.aero/> > > This message may contain confidential information and is intended only for > the individual named. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately by e-mail if you have received this e-mail by mistake and delete > this e-mail from your system. > -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
