@Mojo(name="copy", defaultPhase=PROCESS_SOURCES, requiresProject=false, threadSafe=true) public class CopyMojo extends AbstractFromConfigurationMojo
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
artifact
The artifact to copy from command line.
|
protected boolean |
ignorePermissions
not used in this goal
|
private boolean |
prependGroupId
Prepend artifact groupId during copy
|
private boolean |
stripClassifier
Strip artifact classifier during copy
|
private boolean |
stripVersion
Strip artifact version during copy
|
private boolean |
useBaseVersion
Use artifact baseVersion during copy
|
protected boolean |
useJvmChmod
not used in this goal
|
outputAbsoluteArtifactFilename, reactorProjects, session
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 |
isStripClassifier() |
boolean |
isStripVersion() |
void |
setStripClassifier(boolean stripClassifier) |
void |
setStripVersion(boolean stripVersion) |
void |
setUseBaseVersion(boolean useBaseVersion) |
getArtifact, getArtifactItems, getOutputDirectory, getProcessedArtifactItems, isOverWriteIfNewer, isOverWriteReleases, isOverWriteSnapshots, setArtifact, setArtifactItems, setLocalRepositoryDirectory, setOutputDirectory, setOverWriteIfNewer, setOverWriteReleases, setOverWriteSnapshots, verifyRequirements
copyFile, execute, getArchiverManager, getProject, isSilent, isSkip, isUseJvmChmod, newResolveArtifactProjectBuildingRequest, setArchiverManager, setSilent, setSkip, setUseJvmChmod, unpack, unpack, unpack
@Parameter(property="mdep.stripVersion", defaultValue="false") private boolean stripVersion
@Parameter(property="mdep.stripClassifier", defaultValue="false") private boolean stripClassifier
@Parameter(property="mdep.prependGroupId", defaultValue="false") private boolean prependGroupId
@Parameter(property="mdep.useBaseVersion", defaultValue="false") private boolean useBaseVersion
@Parameter(property="artifact") private java.lang.String artifact
AbstractFromConfigurationMojo.artifactItems
within the POM configuration.@Parameter protected boolean useJvmChmod
@Parameter protected boolean ignorePermissions
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
doExecute
in class AbstractDependencyMojo
org.apache.maven.plugin.MojoExecutionException
- with a message if an error occurs.org.apache.maven.plugin.MojoFailureException
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.AbstractDependencyMojo.copyFile(File, File)
protected ArtifactItemFilter getMarkedArtifactFilter(ArtifactItem item)
getMarkedArtifactFilter
in class AbstractFromConfigurationMojo
public boolean isStripVersion()
public void setStripVersion(boolean stripVersion)
stripVersion
- The stripVersion to set.public boolean isStripClassifier()
public void setStripClassifier(boolean stripClassifier)
stripClassifier
- The stripClassifier to set.public void setUseBaseVersion(boolean useBaseVersion)
useBaseVersion
- The useBaseVersion to set.