You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/02/29 16:31:22 UTC

[GitHub] [maven] michael-o commented on a change in pull request #286: [MNG-6656] Introduce base for build/consumer process

michael-o commented on a change in pull request #286: [MNG-6656] Introduce base for build/consumer process
URL: https://github.com/apache/maven/pull/286#discussion_r386038945
 
 

 ##########
 File path: maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java
 ##########
 @@ -140,7 +121,11 @@ protected static File getFileForClasspathResource( String resource )
     protected ArtifactRepository getLocalRepository()
         throws Exception
     {
-        return repositorySystem.createLocalRepository( getLocalRepositoryPath() );
+        ArtifactRepositoryLayout repoLayout = lookup( ArtifactRepositoryLayout.class, "legacy" );
+
+        ArtifactRepository r = repositorySystem.createArtifactRepository( "local", "file://" + getLocalRepositoryPath().getAbsolutePath(), repoLayout, null, null );
 
 Review comment:
   This is wrong. You cannot construct a URI like that. Please do: `toPath().toUri().toASCIIString()`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services