Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-323

DefaultProjectDependencyAnalyzer does not correctly transform Files with Spaces to URLs

    XMLWordPrintableJSON

Details

    Description

      Having a space in a file path makes mvn dependency:analyze fail with:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:analyze (default-cli) on project x2tc-pm2iim-converter: Execution default-cli of goal org.apache.maven.plugins:maven-dependency-plugin:2.8:analyze failed: Cannot accept visitor on URL: file:/.amd_mnt/blnn728x/home/osipovmi/Projekte/X2TC Proxy/x2tc-models/x2tc-proxy-model/target/classes/: Illegal character in path at index 51: file:/.amd_mnt/blnn728x/home/osipovmi/Projekte/X2TC Proxy/x2tc-models/x2tc-proxy-model/target/classes/ ->
      

      The path includes a space. The problematic line is 150. file.toURI().toURL() mus be called.

      Attachments

        Activity

          People

            mfriedenhagen Mirko Friedenhagen
            michael-o Michael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: