Class Artifact
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.googlecode.download.maven.plugin.internal.Artifact
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="artifact",
defaultPhase=PROCESS_RESOURCES,
requiresProject=false)
public class Artifact
extends org.apache.maven.plugin.AbstractMojo
This mojo is designed to download a maven artifact from the repository and
download them in the specified path. The maven artifact downloaded can also
download it's dependency or not, based on a parameter.
- Author:
- Marc-Andre Houle
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Will download the specified artifact in the specified directory.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
Artifact
public Artifact()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionWill download the specified artifact in the specified directory.- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException- See Also:
-
Mojo.execute()
-