public abstract class AbstractFromConfigurationMojo extends AbstractDependencyMojo
ArtifactItemarchiverManager, artifactCollector, artifactMetadataSource, factory, ignorePermissions, outputAbsoluteArtifactFilename, project, reactorProjects, remoteRepos, resolver, silent, useJvmChmod| Constructor and Description |
|---|
AbstractFromConfigurationMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected Artifact |
getArtifact(ArtifactItem artifactItem)
Resolves the Artifact from the remote repository if necessary.
|
List<ArtifactItem> |
getArtifactItems() |
protected ArtifactRepository |
getLocal()
Override the base to
|
File |
getOutputDirectory() |
protected List<ArtifactItem> |
getProcessedArtifactItems(ProcessArtifactItemsRequest processArtifactItemsRequest)
Preprocesses the list of ArtifactItems.
|
boolean |
isOverWriteIfNewer() |
boolean |
isOverWriteReleases() |
boolean |
isOverWriteSnapshots() |
void |
setArtifact(String artifact) |
void |
setArtifactItems(List<ArtifactItem> theArtifactItems) |
void |
setLocalRepositoryDirectory(File localRepositoryDirectory) |
void |
setOutputDirectory(File theOutputDirectory) |
void |
setOverWriteIfNewer(boolean theOverWriteIfNewer) |
void |
setOverWriteReleases(boolean theOverWriteReleases) |
void |
setOverWriteSnapshots(boolean theOverWriteSnapshots) |
protected void |
verifyRequirements() |
copyFile, doExecute, execute, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLog, getProject, getRemoteRepos, getResolver, isSkip, isUseJvmChmod, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, setSkip, setUseJvmChmod, unpack, unpackgetPluginContext, setLog, setPluginContextprotected void verifyRequirements()
throws MojoFailureException
MojoFailureExceptionprotected List<ArtifactItem> getProcessedArtifactItems(ProcessArtifactItemsRequest processArtifactItemsRequest) throws MojoExecutionException
removeVersion - remove the version from the filename.prependGroupId - prepend the groupId to the filename.useBaseVersion - use the baseVersion of the artifact instead of version for the filename.MojoExecutionException - with a message if an error occurs.ArtifactItemprotected Artifact getArtifact(ArtifactItem artifactItem) throws MojoExecutionException
artifactItem - containing information about artifact from plugin configuration.MojoExecutionException - with a message if the version can't be found in DependencyManagement.protected ArtifactRepository getLocal()
getLocal in class AbstractDependencyMojopublic List<ArtifactItem> getArtifactItems()
public void setArtifactItems(List<ArtifactItem> theArtifactItems)
theArtifactItems - The artifactItems to set.public File getOutputDirectory()
public void setOutputDirectory(File theOutputDirectory)
theOutputDirectory - The outputDirectory to set.public boolean isOverWriteIfNewer()
public void setOverWriteIfNewer(boolean theOverWriteIfNewer)
theOverWriteIfNewer - The overWriteIfNewer to set.public boolean isOverWriteReleases()
public void setOverWriteReleases(boolean theOverWriteReleases)
theOverWriteReleases - The overWriteReleases to set.public boolean isOverWriteSnapshots()
public void setOverWriteSnapshots(boolean theOverWriteSnapshots)
theOverWriteSnapshots - The overWriteSnapshots to set.public void setLocalRepositoryDirectory(File localRepositoryDirectory)
public void setArtifact(String artifact) throws MojoFailureException
MojoFailureExceptionCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.