public class ArtifactInstaller extends Object
| Constructor and Description |
|---|
ArtifactInstaller() |
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifactId() |
String |
getClassifier() |
String |
getExtractDir() |
String |
getGroupId() |
String |
getType() |
String |
getVersion() |
File |
resolve(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> repositories)
Resolves the dependency and return the artifact file.
|
void |
setArtifactId(String artifactId) |
void |
setClassifier(String classifier) |
void |
setExtractDir(String extractDir) |
void |
setGroupId(String groupId) |
void |
setType(String type) |
void |
setVersion(String version) |
public String getGroupId()
public void setGroupId(String groupId)
groupId - Group id.public String getArtifactId()
public void setArtifactId(String artifactId)
artifactId - Artifact id.public String getVersion()
public void setVersion(String version)
version - Version.public String getType()
public void setType(String type)
type - Artifact type.public String getClassifier()
public void setClassifier(String classifier)
classifier - Classifier.public String getExtractDir()
public void setExtractDir(String extractDir)
extractDir - the destination directory where the zipped container install will be
installed.public File resolve(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories) throws org.apache.maven.artifact.resolver.ArtifactResolutionException, org.apache.maven.artifact.resolver.ArtifactNotFoundException
artifactFactory - The artifact factory is used to create valid Maven Artifact
objects.artifactResolver - The artifact resolver is used to dynamically resolve
Artifact objects. It will automatically download whatever needed.localRepository - The local Maven repository. This is used by the artifact resolver to
download resolved artifacts and put them in the local repository so that they won't have to
be fetched again next time the plugin is executed.repositories - The remote Maven repositories used by the artifact resolver to look for
artifacts.org.apache.maven.artifact.resolver.ArtifactResolutionException - If artifact resolution fails.org.apache.maven.artifact.resolver.ArtifactNotFoundException - If artifact not found.Copyright © 2004–2018 Github. All rights reserved.