diff --git a/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java b/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java index f18f569dd3..7eba704ca2 100644 --- a/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java +++ b/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java @@ -27,6 +27,7 @@ import org.codehaus.plexus.PlexusTestCase; import java.io.File; import java.io.FileNotFoundException; +import java.net.URI; import java.net.URISyntaxException; import java.net.URL; @@ -79,7 +80,7 @@ public abstract class AbstractMavenProjectTestCase throw new FileNotFoundException( "Unable to find: " + resource ); } - return new File( resourceUrl.toURI() ); + return new File( new URI( resourceUrl.getPath() ) ); } protected ArtifactRepository getLocalRepository()