public abstract class AbstractFromConfigurationMojo extends AbstractDependencyMojo
ArtifactItem
Modifier and Type | Field and Description |
---|---|
protected java.util.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, outputAbsoluteArtifactFilename, project, remoteRepos, resolver, silent
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.
|
java.util.List<ArtifactItem> |
getArtifactItems() |
protected org.apache.maven.artifact.repository.ArtifactRepository |
getLocal()
Override the base to
|
java.io.File |
getOutputDirectory() |
protected java.util.List<ArtifactItem> |
getProcessedArtifactItems(boolean removeVersion)
Preprocesses the list of ArtifactItems.
|
boolean |
isOverWriteIfNewer() |
boolean |
isOverWriteReleases() |
boolean |
isOverWriteSnapshots() |
boolean |
isSkip() |
void |
setArtifactItems(java.util.List<ArtifactItem> theArtifactItems) |
void |
setLocalRepositoryDirectory(java.io.File localRepositoryDirectory) |
void |
setOutputDirectory(java.io.File theOutputDirectory) |
void |
setOverWriteIfNewer(boolean theOverWriteIfNewer) |
void |
setOverWriteReleases(boolean theOverWriteReleases) |
void |
setOverWriteSnapshots(boolean theOverWriteSnapshots) |
void |
setSkip(boolean skip) |
copyFile, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLog, getProject, getRemoteRepos, getResolver, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, unpack, unpack
getPluginContext, setLog, setPluginContext
protected java.util.List<org.apache.maven.project.MavenProject> reactorProjects
protected java.util.List<ArtifactItem> getProcessedArtifactItems(boolean removeVersion) throws org.apache.maven.plugin.MojoExecutionException
removeVersion
- remove the version from 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 java.util.List<ArtifactItem> getArtifactItems()
public void setArtifactItems(java.util.List<ArtifactItem> theArtifactItems)
theArtifactItems
- The artifactItems to set.public java.io.File getOutputDirectory()
public void setOutputDirectory(java.io.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(java.io.File localRepositoryDirectory)
public boolean isSkip()
public void setSkip(boolean skip)
Copyright © 2013. All Rights Reserved.