[jira] Created: (MNG-3607) Class loaders employed by Maven return invalid URLs to resources

View: New views
4 Messages — Rating Filter:   Alert me  

[jira] Created: (MNG-3607) Class loaders employed by Maven return invalid URLs to resources

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Class loaders employed by Maven return invalid URLs to resources
----------------------------------------------------------------

                 Key: MNG-3607
                 URL: http://jira.codehaus.org/browse/MNG-3607
             Project: Maven 2
          Issue Type: Bug
          Components: General
    Affects Versions: 2.0.9
            Reporter: Benjamin Bentmann


This is basically a Plexus thing because {{DefaultPlexusContainer}} from plexus-container-default:1.0-alpha-9-stable-1 is using {{File.toURL()}} instead of {{File.toURI().toURL()}} when populating the class realms from local JAR files (e.g. the resulting URLs return illegal characters like spaces).

The latest plexus-container-default seems to already use the proper methods so this issue is more or less a request to incorporate this fix into the 2.0.x branch. For instance, usage of Ant 1.7 is severly affected by this (MANTRUN-68).

--
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: (MNG-3607) Class loaders employed by Maven return invalid URLs to resources

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MNG-3607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3607:
------------------------------

    Fix Version/s: 2.1

> Class loaders employed by Maven return invalid URLs to resources
> ----------------------------------------------------------------
>
>                 Key: MNG-3607
>                 URL: http://jira.codehaus.org/browse/MNG-3607
>             Project: Maven 2
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.9
>            Reporter: Benjamin Bentmann
>             Fix For: 2.1
>
>
> This is basically a Plexus thing because {{DefaultPlexusContainer}} from plexus-container-default:1.0-alpha-9-stable-1 is using {{File.toURL()}} instead of {{File.toURI().toURL()}} when populating the class realms from local JAR files (e.g. the resulting URLs return illegal characters like spaces).
> The latest plexus-container-default seems to already use the proper methods so this issue is more or less a request to incorporate this fix into the 2.0.x branch. For instance, usage of Ant 1.7 is severly affected by this (MANTRUN-68).

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

       

Closed: (MNG-3607) Class loaders employed by Maven return invalid URLs to resources

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MNG-3607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-3607.
----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.x)
                   3.0-alpha-3
         Assignee: Benjamin Bentmann

Fixed by updating to recent Plexus versions.

> Class loaders employed by Maven return invalid URLs to resources
> ----------------------------------------------------------------
>
>                 Key: MNG-3607
>                 URL: http://jira.codehaus.org/browse/MNG-3607
>             Project: Maven 2
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.9
>            Reporter: Benjamin Bentmann
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-alpha-3
>
>
> This is basically a Plexus thing because {{DefaultPlexusContainer}} from plexus-container-default:1.0-alpha-9-stable-1 is using {{File.toURL()}} instead of {{File.toURI().toURL()}} when populating the class realms from local JAR files (e.g. the resulting URLs return illegal characters like spaces).
> The latest plexus-container-default seems to already use the proper methods so this issue is more or less a request to incorporate this fix into the 2.0.x branch. For instance, usage of Ant 1.7 is severly affected by this (MANTRUN-68).

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

       

Commented: (MNG-3607) Class loaders employed by Maven return invalid URLs to resources

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MNG-3607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=196881#action_196881 ]

Michael Osipov commented on MNG-3607:
-------------------------------------

Is there no way that such a crucial fix will land in 2.2.x or even 2.0.x?

> Class loaders employed by Maven return invalid URLs to resources
> ----------------------------------------------------------------
>
>                 Key: MNG-3607
>                 URL: http://jira.codehaus.org/browse/MNG-3607
>             Project: Maven 2
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.9
>            Reporter: Benjamin Bentmann
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-alpha-3
>
>
> This is basically a Plexus thing because {{DefaultPlexusContainer}} from plexus-container-default:1.0-alpha-9-stable-1 is using {{File.toURL()}} instead of {{File.toURI().toURL()}} when populating the class realms from local JAR files (e.g. the resulting URLs return illegal characters like spaces).
> The latest plexus-container-default seems to already use the proper methods so this issue is more or less a request to incorporate this fix into the 2.0.x branch. For instance, usage of Ant 1.7 is severly affected by this (MANTRUN-68).

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