maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@codehaus.org>
Subject [jira] (MSHARED-323) DefaultProjectDependencyAnalyzer does not correctly transform Files to URLs
Date Fri, 07 Mar 2014 10:18:59 GMT
Michael Osipov created MSHARED-323:
--------------------------------------

             Summary: DefaultProjectDependencyAnalyzer does not correctly transform Files
to URLs
                 Key: MSHARED-323
                 URL: https://jira.codehaus.org/browse/MSHARED-323
             Project: Maven Shared Components
          Issue Type: Bug
          Components: maven-dependency-analyzer
    Affects Versions: maven-dependency-analyzer-1.4
            Reporter: Michael Osipov
            Priority: Critical


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

{noformat}
[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/
->
{noformat}

The path includes a space. The problematic line is [150](https://maven.apache.org/shared/maven-dependency-analyzer/xref/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzer.html#150).
{{file.toURI().toURL()}} mus be called.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message