public abstract class AbstractFromConfigurationMojo extends AbstractDependencyMojo
ArtifactItem
outputAbsoluteArtifactFilename, reactorProjects, session
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() |
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()
artifactItems is filled by either field injection or by setArtifact().
|
copyFile, doExecute, execute, getArchiverManager, getProject, isSilent, isSkip, isUseJvmChmod, newResolveArtifactProjectBuildingRequest, setArchiverManager, setSilent, setSkip, setUseJvmChmod, unpack, unpack, unpack
getLog, getPluginContext, setLog, setPluginContext
protected void verifyRequirements() throws MojoFailureException
MojoFailureException
- in case of an error.protected List<ArtifactItem> getProcessedArtifactItems(ProcessArtifactItemsRequest processArtifactItemsRequest) throws MojoExecutionException
processArtifactItemsRequest
- preprocessing instructionsMojoExecutionException
- with a message if an error occurs.ArtifactItem
protected 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.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)
localRepositoryDirectory
- localRepositoryDirectory
public void setArtifact(String artifact) throws MojoFailureException
artifact
- The artifact.MojoFailureException
- in case of an error.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.