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 your 
settings.xml- 
Field SummaryFields inherited from interface org.apache.maven.plugin.MojoROLE
- 
Constructor SummaryConstructorsConstructorDescriptionGetMojo(org.apache.maven.execution.MavenSession session, org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolver artifactResolver, org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolver dependencyResolver, org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager, Map<String, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout> repositoryLayouts, org.apache.maven.repository.RepositorySystem repositorySystem) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute()protected booleanisSkip()voidsetArtifactId(String artifactId) The artifactId of the artifact to resolve.voidsetClassifier(String classifier) The classifier of the artifact to resolve.voidsetGroupId(String groupId) The groupId of the artifact to resolve.voidsetPackaging(String type) The packaging of the artifact to resolve.voidsetVersion(String version) The version of the artifact to resolve.Methods inherited from class org.apache.maven.plugin.AbstractMojogetLog, getPluginContext, setLog, setPluginContext
- 
Constructor Details
- 
Method Details- 
executepublic void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
- org.apache.maven.plugin.MojoExecutionException
- org.apache.maven.plugin.MojoFailureException
 
- 
isSkipprotected boolean isSkip()- Returns:
- skip
 
- 
setGroupIdThe groupId of the artifact to resolve. Ignored ifartifactis used.- Parameters:
- groupId- the groupId
 
- 
setArtifactIdThe artifactId of the artifact to resolve. Ignored ifartifactis used.- Parameters:
- artifactId- the artifactId
 
- 
setVersionThe version of the artifact to resolve. Ignored ifartifactis used.- Parameters:
- version- the version
 
- 
setClassifierThe classifier of the artifact to resolve. Ignored ifartifactis used.- Parameters:
- classifier- the classifier to be used
- Since:
- 2.3
 
- 
setPackagingThe packaging of the artifact to resolve. Ignored ifartifactis used.- Parameters:
- type- packaging
 
 
-