jira-importer commented on issue #377: URL: https://github.com/apache/maven-invoker-plugin/issues/377#issuecomment-2957783919
**[velo](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=velo)** commented Found a small issue when dealing with relocated artifacts... ``` Index: src/main/java/org/apache/maven/plugin/invoker/InstallMojo.java =================================================================== --- src/main/java/org/apache/maven/plugin/invoker/InstallMojo.java (revision 939756) +++ src/main/java/org/apache/maven/plugin/invoker/InstallMojo.java (working copy) @@ -638,6 +638,10 @@ { artifact = artifactFactory.createArtifactWithClassifier( gav[0], gav[1], gav[2], type, classifier ); + // must resolve and copy the artifact because if it is relocated only the new location gets copy + resolver.resolve( artifact, remoteRepositories, testRepository ); + copyArtifact( artifact, testRepository ); + ArtifactResolutionResult arr = resolver.resolveTransitively( Collections.singleton( artifact ), originatingArtifact, remoteRepositories, localRepository, artifactMetadataSource ); ``` -- 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. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org