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

cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.7
    • 2.5.7, 2.6.4, 2.7.1
    • Tooling
    • Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01

    • Unknown

    Description

      I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository

      I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:

      <plugin>
         <groupId>org.apache.cxf</groupId>
         <artifactId>cxf-codegen-plugin</artifactId>
         <version>${cxf.version}</version>
         <executions>
            <execution>
               <id>generate-sources</id>
               <phase>generate-sources</phase>
               <configuration>
                  <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
                  <wsdlOptions>
                     <wsdlOption>
                          <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
                     </wsdlOption>
                  </wsdlOptions>
               </configuration>
               <goals>
                  <goal>wsdl2java</goal>
               </goals>
            </execution>
         </executions>
      </plugin>
      

      but when I run "mvn generate-sources", I get:

      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
      of extension class org.apache.cxf.catalog.OASISCatalogManager.
      Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
      eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
      /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
      
      [INFO] ------------------------------------------------------------------------
      .....
      Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
      at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
      /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
      2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
      

      I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

      Attachments

        Issue Links

        Activity

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

          People

            ffang Freeman Yue Fang
            beppegg Giuseppe Guarnieri
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment