You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/03/07 11:18:59 UTC

[jira] (MSHARED-323) DefaultProjectDependencyAnalyzer does not correctly transform Files to URLs

     [ https://jira.codehaus.org/browse/MSHARED-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov updated MSHARED-323:
-----------------------------------

    Description: 
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.

  was:
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.


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