Uploaded image for project: 'PUBLIC - Liferay Maven'
  1. PUBLIC - Liferay Maven
  2. MAVEN-75

Space in build path causes liferay:build-wsdd to fail

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.2.0 GA1
    • Fix Version/s: 6.2.0 GA1
    • Component/s: Plugins
    • Labels:
      None

      Description

      The liferay:build-wsdd goal fails to build if the project path on the filesystem contains a path.

      Here is error log:

      ~/projects/maven/a space/WSDDTest/WSDDTest-portlet
      $ mvn -P620S liferay:build-wsdd
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building WSDDTest Portlet 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — liferay-maven-plugin:6.2.0-SNAPSHOT:build-wsdd (default-cli) @ WSDDTest-portlet —
      May 9, 2013 10:51:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: No server detected
      Loading jar:file:/home/build/.m2/repository/com/liferay/portal/portal-impl/6.2.0-SNAPSHOT/portal-impl-6.2.0-SNAPSHOT.jar!/system.properties
      May 9, 2013 10:51:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Global shared lib directory /home/build/.m2/repository/javax/servlet/servlet-api/2.5/
      May 9, 2013 10:51:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Global lib directory /home/build/.m2/repository/com/liferay/portal/portal-service/6.2.0-SNAPSHOT/
      May 9, 2013 10:51:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Portal lib directory /home/build/servers/liferay-portal-6.2.0-ce-m5/tomcat-7.0.34/webapps/ROOT/WEB-INF/lib/
      May 9, 2013 10:51:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Properties for portal loaded from [jar:file:/home/build/.m2/repository/com/liferay/portal/portal-impl/6.2.0-SNAPSHOT/portal-impl-6.2.0-SNAPSHOT.jar!/portal.properties]
      Loading jar:file:/home/build/.m2/repository/com/liferay/portal/portal-impl/6.2.0-SNAPSHOT/portal-impl-6.2.0-SNAPSHOT.jar!/portal.properties
      May 9, 2013 10:51:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Global shared lib directory /home/build/.m2/repository/javax/servlet/servlet-api/2.5/
      May 9, 2013 10:51:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Global lib directory /home/build/.m2/repository/com/liferay/portal/portal-service/6.2.0-SNAPSHOT/
      May 9, 2013 10:51:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Portal lib directory /home/build/servers/liferay-portal-6.2.0-ce-m5/tomcat-7.0.34/webapps/ROOT/WEB-INF/lib/
      May 9, 2013 10:51:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Properties for portal loaded from [jar:file:/home/build/.m2/repository/com/liferay/portal/portal-impl/6.2.0-SNAPSHOT/portal-impl-6.2.0-SNAPSHOT.jar!/portal.properties]
      Loading jar:file:/home/build/.m2/repository/com/liferay/portal/portal-impl/6.2.0-SNAPSHOT/portal-impl-6.2.0-SNAPSHOT.jar!/portal.properties
      Java2WSDL cn.dalian.service.http.FooServiceSoap
      WSDL2Java /home/build/projects/maven/a space/WSDDTest/WSDDTest-portlet/20130509105102953/service.wsdl
      Running Wsdl2javaAntTask with parameters:
      verbose:false
      debug:false
      quiet:false
      server-side:true
      skeletonDeploy:false
      helperGen:false
      factory:null
      nsIncludes:[]
      nsExcludes:[]
      factoryProps:[]
      testCase:false
      noImports:false
      NStoPkg:{}
      output:/home/build/projects/maven/a space/WSDDTest/WSDDTest-portlet/20130509105102953
      protocolHandlerPkgs:
      deployScope:
      URL:/home/build/projects/maven/a space/WSDDTest/WSDDTest-portlet/20130509105102953/service.wsdl
      all:false
      typeMappingVersion:1.2
      timeout:45000
      failOnNetworkErrors:false
      printStackTraceOnFailure:true
      namespaceMappingFile:null
      username:null
      :passwordnull
      :noWrappedfalse
      :allowInvalidURLfalse
      :implementationClassNamenull
      :classpathnull
      http.proxyHost=null
      http.proxyPort=null
      http.proxyUser=null
      http.proxyPassword=null
      socks.proxyHost=null
      socks.proxyPort=null
      java.net.MalformedURLException: no protocol: /home/build/projects/maven/a space/WSDDTest/WSDDTest-portlet/20130509105102953/service.wsdl
      at java.net.URL.<init>(URL.java:585)
      at java.net.URL.<init>(URL.java:482)
      at java.net.URL.<init>(URL.java:431)
      at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
      at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
      at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
      at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
      at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
      at java.lang.Thread.run(Thread.java:679)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.303s
      [INFO] Finished at: Thu May 09 10:51:03 CST 2013
      [INFO] Final Memory: 14M/497M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-SNAPSHOT:build-wsdd (default-cli) on project WSDDTest-portlet: WSDL processing error for /home/build/projects/maven/a space/WSDDTest/WSDDTest-portlet/20130509105102953/service.wsdl :
      [ERROR] no protocol: /home/build/projects/maven/a space/WSDDTest/WSDDTest-portlet/20130509105102953/service.wsdl
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 20 weeks, 2 days ago

                Packages

                Version Package
                6.2.0 GA1