[ 
http://jira.codehaus.org/browse/MINVOKER-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marvin Froeder reopened MINVOKER-102:
-------------------------------------


Found a small issue when dealing with relocated artifacts...

{code}
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 );
{code}


> Provide a way to install Extra dependencies
> -------------------------------------------
>
>                 Key: MINVOKER-102
>                 URL: http://jira.codehaus.org/browse/MINVOKER-102
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.5
>            Reporter: Marvin Froeder
>            Assignee: Benjamin Bentmann
>             Fix For: 1.6
>
>         Attachments: maven-invoker-plugin.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to