@Mojo(name="unpack", defaultPhase=PROCESS_SOURCES, requiresProject=false, threadSafe=true) public class UnpackMojo extends AbstractFromConfigurationMojo
outputAbsoluteArtifactFilename, reactorProjects, session
Constructor and Description |
---|
UnpackMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute()
Main entry into mojo.
|
String |
getExcludes() |
org.codehaus.plexus.components.io.filemappers.FileMapper[] |
getFileMappers() |
String |
getIncludes() |
File |
getMarkersDirectory() |
protected List<ArtifactItem> |
getProcessedArtifactItems(boolean removeVersion) |
void |
setExcludes(String excludes) |
void |
setFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers) |
void |
setIncludes(String includes) |
void |
setMarkersDirectory(File theMarkersDirectory) |
getArtifact, getArtifactItems, getOutputDirectory, getProcessedArtifactItems, isOverWriteIfNewer, isOverWriteReleases, isOverWriteSnapshots, setArtifact, setArtifactItems, setLocalRepositoryDirectory, setOutputDirectory, setOverWriteIfNewer, setOverWriteReleases, setOverWriteSnapshots, verifyRequirements
copyFile, execute, getProject, isSilent, isSkip, newResolveArtifactProjectBuildingRequest, newResolvePluginProjectBuildingRequest, setSilent, setSkip
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
- MojoFailureException
ArtifactItem
,
AbstractFromConfigurationMojo.getArtifactItems()
,
unpackArtifact(ArtifactItem)
protected List<ArtifactItem> getProcessedArtifactItems(boolean removeVersion) throws org.apache.maven.plugin.MojoExecutionException
removeVersion
- removeVersion.ArtifactItem
org.apache.maven.plugin.MojoExecutionException
- in case of an error.public File getMarkersDirectory()
public void setMarkersDirectory(File theMarkersDirectory)
theMarkersDirectory
- The markersDirectory to set.public String getExcludes()
public void setExcludes(String excludes)
excludes
- A comma separated list of items to exclude i.e. **\/*.xml, **\/*.propertiespublic String getIncludes()
public void setIncludes(String includes)
includes
- A comma separated list of items to include i.e. **\/*.xml, **\/*.propertiespublic org.codehaus.plexus.components.io.filemappers.FileMapper[] getFileMappers()
FileMapper
s to be used for rewriting each target path, or null
if no rewriting shall
happen.public void setFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers)
fileMappers
- FileMapper
s to be used for rewriting each target path, or null
if no
rewriting shall happen.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.