public class MavenDependencyResolver extends java.lang.Object implements DependencyResolver
Constructor and Description |
---|
MavenDependencyResolver() |
MavenDependencyResolver(java.lang.String repositoryUrl,
java.lang.String repositoryId,
java.lang.String repositoryUserName,
java.lang.String repositoryPassword) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureMaven(org.apache.maven.artifact.ant.DependenciesTask dependenciesTask) |
protected org.apache.maven.artifact.ant.DependenciesTask |
createDependenciesTask() |
java.net.URL |
getLocalArtifactUrl(DependencyJar dependency) |
java.net.URL[] |
getLocalArtifactUrls(DependencyJar... dependencies)
Get an array of local artifact URLs for the given dependencies.
|
java.net.URL[] |
getLocalArtifactUrls(DependencyJar dependency) |
public MavenDependencyResolver()
public MavenDependencyResolver(java.lang.String repositoryUrl, java.lang.String repositoryId, java.lang.String repositoryUserName, java.lang.String repositoryPassword)
public java.net.URL[] getLocalArtifactUrls(DependencyJar dependency)
getLocalArtifactUrls
in interface DependencyResolver
public java.net.URL[] getLocalArtifactUrls(DependencyJar... dependencies)
Get an array of local artifact URLs for the given dependencies. The order of the URLs is guaranteed to be the same as the input order of dependencies, i.e., urls[i] is the local artifact URL for dependencies[i].
public java.net.URL getLocalArtifactUrl(DependencyJar dependency)
getLocalArtifactUrl
in interface DependencyResolver
protected org.apache.maven.artifact.ant.DependenciesTask createDependenciesTask()
protected void configureMaven(org.apache.maven.artifact.ant.DependenciesTask dependenciesTask)