Class GetMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.dependency.GetMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="get", requiresProject=false, threadSafe=true) public class GetMojo extends org.apache.maven.plugin.AbstractMojo
Resolves a single artifact, eventually transitively, from the specified remote repositories. Caveat: will always check the central repository defined in the super pom. You could use a mirror entry in yoursettings.xml
-
-
Constructor Summary
Constructors Constructor Description GetMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected boolean
isSkip()
void
setArtifactId(String artifactId)
void
setClassifier(String classifier)
void
setGroupId(String groupId)
void
setPackaging(String type)
void
setVersion(String version)
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
isSkip
protected boolean isSkip()
- Returns:
skip
-
setGroupId
public void setGroupId(String groupId)
- Parameters:
groupId
- The groupId.
-
setArtifactId
public void setArtifactId(String artifactId)
- Parameters:
artifactId
- The artifactId.
-
setVersion
public void setVersion(String version)
- Parameters:
version
- The version.
-
setClassifier
public void setClassifier(String classifier)
- Parameters:
classifier
- The classifier to be used.
-
setPackaging
public void setPackaging(String type)
- Parameters:
type
- packaging.
-
-