|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.dependency.AbstractFromDependenciesMojo
org.codehaus.mojo.dependency.CopyDependenciesMojo
public class CopyDependenciesMojo
Goal that copies the project dependencies from the repository to a defined location.
Field Summary |
---|
Fields inherited from class org.codehaus.mojo.dependency.AbstractFromDependenciesMojo |
---|
archiverManager, outputDirectory |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
CopyDependenciesMojo()
|
Method Summary | |
---|---|
protected void |
copyArtifact(org.apache.maven.artifact.Artifact artifact,
boolean removeVersion)
Copies the Artifact after building the destination file name if overridden. |
void |
execute()
Main entry into mojo. |
Methods inherited from class org.codehaus.mojo.dependency.AbstractFromDependenciesMojo |
---|
getDependencies, getMappedReactorArtifacts |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CopyDependenciesMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- with a message if an error occurs.AbstractFromDependenciesMojo.getDependencies()
,
copyArtifact(Artifact, boolean)
protected void copyArtifact(org.apache.maven.artifact.Artifact artifact, boolean removeVersion) throws org.apache.maven.plugin.MojoExecutionException
artifact
- representing the object to be copied.removeVersion
- specifies if the version should be removed from the file name when copying.
org.apache.maven.plugin.MojoExecutionException
- with a message if an error occurs.DependencyUtil.copyFile(File, File, Log)
,
DependencyUtil.getFormattedFileName(Artifact, boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |