public abstract class AbstractFromConfigurationMojo extends AbstractDependencyMojo
ArtifactItem
outputAbsoluteArtifactFilename, reactorProjects, session
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() |
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, getProject, isSilent, isSkip, newResolveArtifactProjectBuildingRequest, newResolvePluginProjectBuildingRequest, setSilent, setSkip
protected void verifyRequirements() throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException
- in case of an error.protected List<ArtifactItem> getProcessedArtifactItems(ProcessArtifactItemsRequest processArtifactItemsRequest) throws org.apache.maven.plugin.MojoExecutionException
processArtifactItemsRequest
- preprocessing instructionsorg.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 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 org.apache.maven.plugin.MojoFailureException
artifact
- The artifact.org.apache.maven.plugin.MojoFailureException
- in case of an error.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.