You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Atle Tokle (JIRA)" <ji...@apache.org> on 2017/06/23 13:13:00 UTC

[jira] [Commented] (CXF-7067) cxf-codegen-plugin version 3.1.x fails to download wsdlArtifact

    [ https://issues.apache.org/jira/browse/CXF-7067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16060876#comment-16060876 ] 

Atle Tokle commented on CXF-7067:
---------------------------------

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)

I'm using a settings.xml
It looks like this:
{code}
<settings>
  <mirrors>
    <mirror>
      <!--This sends everything else to /public -->
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <url>http://55.55.55.55:8081/nexus/content/groups/public</url>
    </mirror>
  </mirrors>
	<servers>
	   <server>
		  <id>nexus</id>
		  <username>jenkins</username>
		  <password>xxxxxxx</password>
		</server>
		<server>
		  <id>nexus-release-repository</id>
		  <username>jenkins</username>
		  <password>xxxxxx</password>
		</server>
		<server>
		  <id>nexus-snapshot-repository</id>
		  <username>jenkins</username>
		  <password>xxxxxx</password>
		</server>
	</servers>
  <profiles>
    <profile>
      <id>nexus</id>
      <!--Enable snapshots for the built in central repo to direct -->
      <!--all requests to nexus via the mirror -->
      <repositories>
        <repository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>
        <repository>
          <id>nexus</id>
          <url>http://55.55.55.55:8081/nexus/content/groups/public</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>

      </repositories>
     <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
		
		<pluginRepository>
		  <id>nexus-plugin</id>
		  <name>nexus plugins</name>
		  <url>http://55.55.55.55:8081/nexus/content/groups/public</url>
		</pluginRepository>
      </pluginRepositories>
    </profile>
	<profile>
		<id>releaseplugininfo</id>
		<properties>
			<release.svn.user>mavenrelease</release.svn.user>
			<release.svn.password>xxxxxx</release.svn.password>
		</properties>
	</profile>
  </profiles>
  <activeProfiles>
    <!--make the profile active all the time -->
    <activeProfile>nexus</activeProfile>
  </activeProfiles>
</settings>
{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
>
> 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)