Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7067

cxf-codegen-plugin version 3.1.x fails to download wsdlArtifact

Agile BoardAttach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1, 3.1.7
    • 3.1.13, 3.2.0
    • Build system
    • None
    • Unknown

    Description

      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:

                  <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>
      

      When it runs, it logs this:

      [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] 
      

      The same run on 3.0.x version output this:

      [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] 
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            deki Dennis Kieselhorst
            atokle Atle Tokle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment