You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Siveton (JIRA)" <ji...@codehaus.org> on 2008/04/27 14:57:46 UTC
[jira] Updated: (MSHARED-16) stage dies at normalization of
relative path
[ http://jira.codehaus.org/browse/MSHARED-16?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Siveton updated MSHARED-16:
-----------------------------------
Component/s: maven-doxia-tools
> stage dies at normalization of relative path
> --------------------------------------------
>
> Key: MSHARED-16
> URL: http://jira.codehaus.org/browse/MSHARED-16
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-doxia-tools
> Environment: Linux
> Reporter: Martin von Gagern
> Attachments: normalizeRelativePaths.patch, testcase.zip
>
>
> Since r640091, DefaultSiteTool from maven-doxia-tools tries to normalize paths, which fails, as the current plexus-utils don't handle normalization of relative paths, and the stage mojo seems to use them quite extensively.
> I have attached a small testcase, a parent project with a single child, and site:stage as the default goal, so you can simply run "mvn" on the parent. Debugging this shows that FileUtils.normalize is handed a path starting in "../../".
> I have also attached a patch to plexus-utils that makes FileUtils.normalize handle relative paths, but I'm not sure if this would be intended, and I can't test it, because I can't get maven use the latest snapshot of plexus-utils, even if stated as an explicit dependency of the site plugin.
> See also:
> http://svn.apache.org/viewvc/maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java?r1=637431&r2=640091&diff_format=h#l72
> http://fisheye.codehaus.org/browse/plexus/plexus-utils/trunk/src/main/java/org/codehaus/plexus/util/FileUtils.java
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira