[ https://issues.apache.org/jira/browse/CXF-7067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16069841#comment-16069841 ]
Dennis Kieselhorst commented on CXF-7067: ----------------------------------------- Thanks for the testcase. I was able to reproduce the issue. While it is working with 3.0.13, it fails with >3.1.x. Reason for that is that Maven core dependencies changed from 2 to 3 and therefore the code was adapted. I've simplified the testcase and applied a fix. AbstractCodegenMoho also uses ProjectDependenciesResolver which is deprecated as of Maven 3.2.2 and should be removed. Maybe we should switch to aether-api. While waiting for the next release you can add the wsdl artifact to the dependency list: {code:xml} <dependencies> <dependency> <groupId>${wsdl.groupid}</groupId> <artifactId>${wsdl.artifactid}</artifactId> <version>${wsdl.version}</version> <type>wsdl</type> </dependency> </dependencies> {code} > cxf-codegen-plugin version 3.1.x fails to download wsdlArtifact > --------------------------------------------------------------- > > Key: CXF-7067 > URL: https://issues.apache.org/jira/browse/CXF-7067 > Project: CXF > Issue Type: Bug > Components: Build system > Affects Versions: 3.1, 3.1.7 > Reporter: Atle Tokle > Assignee: Dennis Kieselhorst > Fix For: 3.1.13, 3.2.0 > > > I am upgrading my project from using cxf version 3.0.1 to 3.1.7. And have my > wsdl's in maven repository. But it fails to download. Have tested that all > 3.0.x versions is OK, but 3.1.7 (and 3.1.0) both fails. > Plugin is configured like this: > {code} > <plugin> > <groupId>org.apache.cxf</groupId> > <artifactId>cxf-codegen-plugin</artifactId> > <executions> > <execution> > <id>generate-sources1</id> > <phase>generate-sources</phase> > <configuration> > <wsdlOptions> > <wsdlOption> > <wsdlArtifact> > > <groupId>no.xxxxxxx.kontrakter.tjeneste.felles.kontekst</groupId> > > <artifactId>soapheaderswrapper</artifactId> > <version>4.8.0</version> > </wsdlArtifact> > </wsdlOption> > </wsdlOptions> > </configuration> > <goals> > <goal>wsdl2java</goal> > </goals> > </execution> > </executions> > </plugin> > {code} > When it runs, it logs this: > {code} > [INFO] > [INFO] --- cxf-codegen-plugin:3.1.7:wsdl2java (generate-sources1) @ > iamhelper-domain-gen --- > Downloading: > http://repo.maven.apache.org/maven2/no/xxxxxxx/kontrakter/tjeneste/felles/kontekst/soapheaderswrapper/4.8.0/soapheaderswrapper-4.8.0.wsdl > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2.455s > [INFO] Finished at: Fri Sep 23 09:41:00 CEST 2016 > [INFO] Final Memory: 13M/300M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.cxf:cxf-codegen-plugin:3.1.7:wsdl2java (generate-sources1) on > project soapheaders-domain-gen: Failed to resolve WSDL artifact > no.xxxxxxx.kontrakter.tjeneste.felles.kontekst:soapheaderswrapper:wsdl:4.8.0 > -> [Help 1] > [ERROR] > {code} > The same run on 3.0.x version output this: > {code} > [INFO] > [INFO] --- cxf-codegen-plugin:3.0.10:wsdl2java (generate-sources1) @ > iamhelper-domain-gen --- > [INFO] Resolved WSDL artifact to file > C:\Users\atokle.AD-ONE\.m2\repository\no\xxxxxxx\kontrakter\tjeneste\felles\kontekst\soapheaderswrapper\4.8.0\soapheaderswrapper-4.8.0.wsdl > [INFO] > no.xxxxxxx.kontrakter.tjeneste.felles.kontekst:soapheaderswrapper:wsdl:4.9.0:compile > resolved to > C:\Users\atokle.AD-ONE\.m2\repository\no\xxxxxxx\kontrakter\tjeneste\felles\kontekst\soapheaderswrapper\4.9.0\soapheaderswrapper-4.9.0.wsdl > [INFO] Resolved WSDL artifact to file > C:\Users\atokle.AD-ONE\.m2\repository\no\xxxxxxx\kontrakter\tjeneste\felles\kontekst\soapheaderswrapper\4.9.0\soapheaderswrapper-4.9.0.wsdl > [INFO] > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)