public class MyArtifactResolver extends Object implements PluginArtifactResolver
Constructor and Description |
---|
MyArtifactResolver(AbstractT7BaseMojo t7BaseMojo) |
Modifier and Type | Method and Description |
---|---|
org.apache.maven.artifact.Artifact |
resolve(String groupId,
String artifactId,
String version,
String classifier,
String type,
String scope)
resolves an Artifact from the repositorys.
|
File |
resolveArtifact(String coordinates) |
org.apache.maven.artifact.Artifact |
resolveJar(String groupId,
String artifactId,
String version,
String classifier) |
org.apache.maven.artifact.Artifact |
resolveWar(String groupId,
String artifactId,
String version,
String classifier) |
public MyArtifactResolver(AbstractT7BaseMojo t7BaseMojo)
public org.apache.maven.artifact.Artifact resolve(String groupId, String artifactId, String version, String classifier, String type, String scope) throws org.apache.maven.plugin.MojoExecutionException
groupId
- - Artifact GroupIdartifactId
- - Artifact Idversion
- - Artifact Versionclassifier
- - Artifact Versiontype
- - Artifact Typescope
- - Artifact Scopeorg.apache.maven.plugin.MojoExecutionException
public org.apache.maven.artifact.Artifact resolveJar(String groupId, String artifactId, String version, String classifier) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public org.apache.maven.artifact.Artifact resolveWar(String groupId, String artifactId, String version, String classifier) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public File resolveArtifact(String coordinates) throws ResolutionException
resolveArtifact
in interface PluginArtifactResolver
ResolutionException
Copyright © 2012. All Rights Reserved.