[ http://jira.codehaus.org/browse/MDEPLOY-37?page=comments#action_69518 ]
Steven Coco commented on MDEPLOY-37: ------------------------------------ I just noticed that this also happens on Linux. It's the same problem; and if you specify a URL with an encoded space in it, Maven will create a new directory with "%20" in the name. And this bug's posting is a bit munged by the automatic formatting, but all the information is essentially visible; ignore the links and the bullets in that auto-generated markup. > 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 > Type: Bug > Versions: 2.0 > Environment: Microsoft Windows XP [Version 5.1.2600] > Maven version: 2.0.4 > Reporter: Steven Coco > 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: > <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. -- 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