|
||||||||||
| 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.AbstractFromConfigurationMojo
org.codehaus.mojo.dependency.CopyMojo
Goal that copies a list of artifacts from the repository to defined locations.
| Field Summary |
| Fields inherited from class org.codehaus.mojo.dependency.AbstractFromConfigurationMojo |
archiverManager, project |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Constructor Summary | |
CopyMojo()
|
|
| Method Summary | |
protected void |
copyArtifact(ArtifactItem artifactItem,
boolean removeVersion)
Resolves the artifact from the repository and copies it to the specified location. |
void |
execute()
Main entry into mojo. |
| Methods inherited from class org.codehaus.mojo.dependency.AbstractFromConfigurationMojo |
getArtifact, getArtifactItems |
| 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 CopyMojo()
| Method Detail |
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.ArtifactItem,
AbstractFromConfigurationMojo.getArtifactItems(),
#copyArtifact(ArtifactItem)
protected void copyArtifact(ArtifactItem artifactItem,
boolean removeVersion)
throws org.apache.maven.plugin.MojoExecutionException
artifactItem - containing the information about the Artifact to copy.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 | |||||||||