org.apache.maven.plugin.dependency.fromConfiguration
public abstract class AbstractFromConfigurationMojo extends AbstractDependencyMojo
ArtifactItem
archiverManager, artifactCollector, artifactMetadataSource, factory, local, outputAbsoluteArtifactFilename, project, reactorProjects, 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 nessessary.
|
java.util.ArrayList |
getArtifactItems() |
java.io.File |
getOutputDirectory() |
protected java.util.ArrayList |
getProcessedArtifactItems(boolean removeVersion)
Preprocesses the list of ArtifactItems.
|
boolean |
isOverWriteIfNewer() |
boolean |
isOverWriteReleases() |
boolean |
isOverWriteSnapshots() |
void |
setArtifactItems(java.util.ArrayList theArtifactItems) |
void |
setOutputDirectory(java.io.File theOutputDirectory) |
void |
setOverWriteIfNewer(boolean theOverWriteIfNewer) |
void |
setOverWriteReleases(boolean theOverWriteReleases) |
void |
setOverWriteSnapshots(boolean theOverWriteSnapshots) |
copyFile, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, unpack, unpack
getPluginContext, setLog, setPluginContext
protected java.util.ArrayList 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.public java.util.ArrayList getArtifactItems()
public void setArtifactItems(java.util.ArrayList 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.Copyright © 2014. All Rights Reserved.