Package org.apache.xbean.classpath.maven
Class MavenResolver
- java.lang.Object
-
- org.apache.xbean.classpath.maven.MavenResolver
-
public class MavenResolver extends java.lang.Object
Transitively resolves dependencies using Maven.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description MavenResolver()
Creates a new resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 belongsartifactId
- the id of the artifact to resolveversion
- 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 belongsartifactId
- the id of the artifact to resolveversion
- the version of the artifacttype
- 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
-
-