org.apache.xbean.classpath.maven
Class MavenResolver

java.lang.Object
  extended by org.apache.xbean.classpath.maven.MavenResolver

public class MavenResolver
extends java.lang.Object

Transitively resolves dependencies using Maven.

Since:
1.0
Version:
$Id$
Author:
Dain Sundstrom

Constructor Summary
MavenResolver()
          Creates a new resolver.
 
Method Summary
 void addArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
          Add an artifact to resolve.
 void addArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String type)
          Add an artifact to resolve.
 java.net.URL[] resolve()
          Downloads all of the artificts, all of the artificts they depend on and so on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenResolver

public MavenResolver()
Creates a new resolver.

Method Detail

addArtifact

public void addArtifact(java.lang.String groupId,
                        java.lang.String artifactId,
                        java.lang.String version)
Add an artifact to resolve.

Parameters:
groupId - the id of the group to which the dependency belongs
artifactId - the id of the artifact to resolve
version - the version of the artifact

addArtifact

public void addArtifact(java.lang.String groupId,
                        java.lang.String artifactId,
                        java.lang.String version,
                        java.lang.String type)
Add an artifact to resolve.

Parameters:
groupId - the id of the group to which the dependency belongs
artifactId - the id of the artifact to resolve
version - the version of the artifact
type - the type of the artifact

resolve

public java.net.URL[] resolve()
Downloads all of the artificts, all of the artificts they depend on and so on.

Returns:
the URLs to all artifacts


Copyright © 2005-2011. All Rights Reserved.