How can resolve an artifact from a remote Repo from within my Component

Here is a template of my Component code. 
It will take GAV co-ordinates as argument. 
How can I use the GAV co-ordinates to download the artifact from my remote
Nexus repo?


@org.codehaus.plexus.component.annotations.Component(role =
MyResolver.class, instantiationStrategy = "per-lookup")
public class MyResolver {
 
    public void resolve(String groupId, String artifactId, String version,
String type) {
        //TODO - What Maven API can I use to download this from remote repo
    }    
    
}




--
View this message in context: 
http://maven.40175.n5.nabble.com/How-can-resolve-an-artifact-from-a-remote-Repo-from-within-my-Component-tp5908782.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to