public class CopyMojo extends AbstractFromConfigurationMojo
reactorProjects
archiverManager, artifactCollector, artifactMetadataSource, factory, outputAbsoluteArtifactFilename, project, remoteRepos, resolver, silent
Constructor and Description |
---|
CopyMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyArtifact(ArtifactItem artifactItem)
Resolves the artifact from the repository and copies it to the specified location.
|
void |
execute()
Main entry into mojo.
|
protected ArtifactItemFilter |
getMarkedArtifactFilter(ArtifactItem item) |
boolean |
isStripVersion() |
void |
setStripVersion(boolean stripVersion) |
getArtifact, getArtifactItems, getLocal, getOutputDirectory, getProcessedArtifactItems, isOverWriteIfNewer, isOverWriteReleases, isOverWriteSnapshots, isSkip, setArtifactItems, setLocalRepositoryDirectory, setOutputDirectory, setOverWriteIfNewer, setOverWriteReleases, setOverWriteSnapshots, setSkip
copyFile, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLog, getProject, getRemoteRepos, getResolver, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, unpack, unpack
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) throws org.apache.maven.plugin.MojoExecutionException
artifactItem
- containing the information about the Artifact to copy.org.apache.maven.plugin.MojoExecutionException
- with a message if an error occurs.DependencyUtil#copyFile(File, File, Log)
,
DependencyUtil#getFormattedFileName(Artifact, boolean)
protected ArtifactItemFilter getMarkedArtifactFilter(ArtifactItem item)
public boolean isStripVersion()
public void setStripVersion(boolean stripVersion)
stripVersion
- The stripVersion to set.Copyright © 2013. All Rights Reserved.