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:
[email protected]
With regards,
Apache Git Services