You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/03/15 21:40:13 UTC
[jira] Updated: (MDEPLOY-37) On Windows, Maven requires local
distribution repository URL be specified as invalid file URL with Windows
path.
[ http://jira.codehaus.org/browse/MDEPLOY-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MDEPLOY-37:
-------------------------------------
Description:
On Windows, a local distribution repository URL must be specified as an invalid file URL with a Windows file path syntax. If it instead is given in valid file URL syntax then Maven will treat it as a Windows path name and actually create new directories matching the encoded URL's literal textual value.
Basically, the distribution management element is specified like so:
{code:xml}
<distributionManagement>
<repository>
<id>local-release-repository</id>
<name>Local Release Repository</name>
<!--
- Notice that this is a Windows path: it uses the backslash:
- and also the space is not URL encoded.
- Change this to a valid file URL:
- file:///C:/Local%20Repository
- and Maven will then create a directory named literally:
- "Local%20Repository"
- at the root of the C drive,and deploy there.
-->
<url>file:///C:\Local Repository</url>
</repository>
</distributionManagement>
{code}
A test case is attached that shows the behavior. Execute the default goal on a Windows machine; and then also read the comment inside the POM to see more.
was:
On Windows, a local distribution repository URL must be specified as an invalid file URL with a Windows file path syntax. If it instead is given in valid file URL syntax then Maven will treat it as a Windows path name and actually create new directories matching the encoded URL's literal textual value.
Basically, the distribution management element is specified like so:
<distributionManagement>
<repository>
<id>local-release-repository</id>
<name>Local Release Repository</name>
<!--
- Notice that this is a Windows path: it uses the backslash:
- and also the space is not URL encoded.
- Change this to a valid file URL:
- file:///C:/Local%20Repository
- and Maven will then create a directory named literally:
- "Local%20Repository"
- at the root of the C drive,and deploy there.
-->
<url>file:///C:\Local Repository</url>
</repository>
</distributionManagement>
A test case is attached that shows the behavior. Execute the default goal on a Windows machine; and then also read the comment inside the POM to see more.
> On Windows, Maven requires local distribution repository URL be specified as invalid file URL with Windows path.
> ----------------------------------------------------------------------------------------------------------------
>
> Key: MDEPLOY-37
> URL: http://jira.codehaus.org/browse/MDEPLOY-37
> Project: Maven 2.x Deploy Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Environment: Microsoft Windows XP [Version 5.1.2600]
> Maven version: 2.0.4
> Reporter: Steven Coco
> Assignee: Benjamin Bentmann
> Attachments: deploy-path-bug.zip
>
>
> On Windows, a local distribution repository URL must be specified as an invalid file URL with a Windows file path syntax. If it instead is given in valid file URL syntax then Maven will treat it as a Windows path name and actually create new directories matching the encoded URL's literal textual value.
> Basically, the distribution management element is specified like so:
> {code:xml}
> <distributionManagement>
> <repository>
> <id>local-release-repository</id>
> <name>Local Release Repository</name>
>
> <!--
> - Notice that this is a Windows path: it uses the backslash:
> - and also the space is not URL encoded.
> - Change this to a valid file URL:
> - file:///C:/Local%20Repository
> - and Maven will then create a directory named literally:
> - "Local%20Repository"
> - at the root of the C drive,and deploy there.
> -->
> <url>file:///C:\Local Repository</url>
> </repository>
> </distributionManagement>
> {code}
> A test case is attached that shows the behavior. Execute the default goal on a Windows machine; and then also read the comment inside the POM to see more.
--
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