@Mojo(name="copy",
defaultPhase=PROCESS_SOURCES,
requiresProject=false,
threadSafe=true)
public class CopyMojo
extends AbstractFromConfigurationMojo
reactorProjectsarchiverManager, artifactCollector, artifactMetadataSource, factory, ignorePermissions, outputAbsoluteArtifactFilename, project, remoteRepos, resolver, silent, useJvmChmod| 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.
|
protected void |
doExecute()
Main entry into mojo.
|
protected ArtifactItemFilter |
getMarkedArtifactFilter(ArtifactItem item) |
boolean |
isStripVersion() |
void |
setStripVersion(boolean stripVersion) |
void |
setUseBaseVersion(boolean useBaseVersion) |
getArtifact, getArtifactItems, getLocal, getOutputDirectory, getProcessedArtifactItems, isOverWriteIfNewer, isOverWriteReleases, isOverWriteSnapshots, setArtifact, setArtifactItems, setLocalRepositoryDirectory, setOutputDirectory, setOverWriteIfNewer, setOverWriteReleases, setOverWriteSnapshots, verifyRequirementscopyFile, execute, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLog, getProject, getRemoteRepos, getResolver, isSkip, isUseJvmChmod, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, setSkip, setUseJvmChmod, unpack, unpackprotected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
doExecute in class AbstractDependencyMojoorg.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.org.apache.maven.plugin.MojoFailureExceptionArtifactItem,
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.public void setUseBaseVersion(boolean useBaseVersion)
useBaseVersion - The useBaseVersion to set.Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.