Maven 2 & 3

Class loaders employed by Maven return invalid URLs to resources

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.9
  • Fix Version/s: 3.0-alpha-3
  • Component/s: General
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

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

Issue Links

Activity

Hide
Benjamin Bentmann added a comment -

Fixed by updating to recent Plexus versions.

Show
Benjamin Bentmann added a comment - Fixed by updating to recent Plexus versions.
Hide
Michael Osipov added a comment -

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

Show
Michael Osipov added a comment - Is there no way that such a crucial fix will land in 2.2.x or even 2.0.x?
Hide
David Pilato added a comment -

As Michael said : is there any way to fix this bug before the 3.0.x version ?
My team is currently working with Maven2 and there are some issues with Maven3 so I can't make all my team move to Maven3...

Show
David Pilato added a comment - As Michael said : is there any way to fix this bug before the 3.0.x version ? My team is currently working with Maven2 and there are some issues with Maven3 so I can't make all my team move to Maven3...

People

Vote (4)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: