public abstract class AbstractFromConfigurationMojo extends AbstractDependencyMojo
ArtifactItem
Modifier and Type | Field and Description |
---|---|
protected List<org.apache.maven.project.MavenProject> |
reactorProjects
To search for artifacts within the reactor and ensure consistent behaviour between Maven 2 and Maven 3.
|
archiverManager, artifactCollector, artifactMetadataSource, factory, ignorePermissions, outputAbsoluteArtifactFilename, project, remoteRepos, resolver, silent, useJvmChmod
Constructor and Description |
---|
AbstractFromConfigurationMojo() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.maven.artifact.Artifact |
getArtifact(ArtifactItem artifactItem)
Resolves the Artifact from the remote repository if necessary.
|
List<ArtifactItem> |
getArtifactItems() |
protected org.apache.maven.artifact.repository.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, unpack
@Parameter(defaultValue="${reactorProjects}", readonly=true, required=true) protected List<org.apache.maven.project.MavenProject> reactorProjects
protected void verifyRequirements() throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException
protected List<ArtifactItem> getProcessedArtifactItems(ProcessArtifactItemsRequest processArtifactItemsRequest) throws org.apache.maven.plugin.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.org.apache.maven.plugin.MojoExecutionException
- with a message if an error occurs.ArtifactItem
protected org.apache.maven.artifact.Artifact getArtifact(ArtifactItem artifactItem) throws org.apache.maven.plugin.MojoExecutionException
artifactItem
- containing information about artifact from plugin configuration.org.apache.maven.plugin.MojoExecutionException
- with a message if the version can't be found in DependencyManagement.protected org.apache.maven.artifact.repository.ArtifactRepository getLocal()
getLocal
in class AbstractDependencyMojo
public 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 org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.