You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Steven Coco (JIRA)" <ji...@codehaus.org> on 2006/06/27 22:00:40 UTC

[jira] Created: (MDEPLOY-37) On Windows, Maven requires local distribution repository URL be specified as invalid file URL with Windows path.

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


[jira] Commented: (MDEPLOY-37) On Windows, Maven requires local distribution repository URL be specified as invalid file URL with Windows path.

Posted by "Steven Coco (JIRA)" <ji...@codehaus.org>.
    [ 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


[jira] Closed: (MDEPLOY-37) On Windows, Maven requires local distribution repository URL be specified as invalid file URL with Windows path.

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MDEPLOY-37.
------------------------------------

      Assignee: Benjamin Bentmann
    Resolution: Duplicate

This is actually bug in the Maven core and is fixed in the upcoming 2.1.0 release.

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

        

[jira] Updated: (MDEPLOY-37) On Windows, Maven requires local distribution repository URL be specified as invalid file URL with Windows path.

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ 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