Class ArtifactItem
java.lang.Object
org.apache.maven.plugins.dependency.fromConfiguration.ArtifactItem
- All Implemented Interfaces:
- org.apache.maven.shared.transfer.dependencies.DependableCoordinate
public class ArtifactItem
extends Object
implements org.apache.maven.shared.transfer.dependencies.DependableCoordinate
ArtifactItem represents information specified in the plugin configuration section for each artifact.
- Since:
- 1.0
- Author:
- Brian Fox
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor.ArtifactItem(org.apache.maven.artifact.Artifact artifact) 
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.maven.artifact.Artifactorg.codehaus.plexus.components.io.filemappers.FileMapper[]getType()booleanvoidsetArtifact(org.apache.maven.artifact.Artifact artifact) voidsetArtifactId(String theArtifact) voidsetClassifier(String classifier) voidsetDestFileName(String destFileName) voidsetEncoding(String encoding) voidsetExcludes(String excludes) voidsetFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers) voidsetGroupId(String groupId) voidsetIncludes(String includes) voidsetNeedsProcessing(boolean needsProcessing) voidsetOutputDirectory(File outputDirectory) voidsetOverWrite(String overWrite) voidvoidsetVersion(String version) toString()
- 
Constructor Details- 
ArtifactItempublic ArtifactItem()Default constructor.
- 
ArtifactItempublic ArtifactItem(org.apache.maven.artifact.Artifact artifact) - Parameters:
- artifact-- Artifact
 
 
- 
- 
Method Details- 
getArtifactId- Specified by:
- getArtifactIdin interface- org.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- returns the artifact ID
 
- 
setArtifactId- Parameters:
- theArtifact- the artifact ID to set
 
- 
getGroupId- Specified by:
- getGroupIdin interface- org.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- returns the group ID
 
- 
setGroupId- Parameters:
- groupId- the group ID to set
 
- 
getType- Specified by:
- getTypein interface- org.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- returns the type
 
- 
setType- Parameters:
- type- the type to set
 
- 
getVersion- Specified by:
- getVersionin interface- org.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- returns the version
 
- 
setVersion- Parameters:
- version- the version to set
 
- 
getBaseVersion- Returns:
- teturns the base version
 
- 
getClassifier- Specified by:
- getClassifierin interface- org.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- classifier
 
- 
setClassifier- Parameters:
- classifier- classifier
 
- 
toString
- 
getOutputDirectory- Returns:
- returns the location
 
- 
setOutputDirectory- Parameters:
- outputDirectory- the outputDirectory to set
 
- 
getDestFileName- Returns:
- returns the location
 
- 
setDestFileName- Parameters:
- destFileName- the destination file name to set
 
- 
isNeedsProcessingpublic boolean isNeedsProcessing()- Returns:
- returns the needsProcessing
 
- 
setNeedsProcessingpublic void setNeedsProcessing(boolean needsProcessing) - Parameters:
- needsProcessing- the needsProcessing to set
 
- 
getOverWrite- Returns:
- teturns the overWriteSnapshots
 
- 
setOverWrite- Parameters:
- overWrite- the overWrite to set
 
- 
getEncoding- Returns:
- returns the encoding
- Since:
- 3.0
 
- 
setEncoding- Parameters:
- encoding- the encoding to set
- Since:
- 3.0
 
- 
getArtifactpublic org.apache.maven.artifact.Artifact getArtifact()- Returns:
- returns the artifact
 
- 
setArtifactpublic void setArtifact(org.apache.maven.artifact.Artifact artifact) - Parameters:
- artifact- the artifact to set
 
- 
getExcludes- Returns:
- returns a comma separated list of excluded items
 
- 
setExcludes- Parameters:
- excludes- a comma separated list of items to exclude; for example,- **\/*.xml, **\/*.properties
 
- 
getIncludes- Returns:
- returns a comma separated list of items to include
 
- 
setIncludes- Parameters:
- includes- comma separated list of items to include; for example,- **\/*.xml, **\/*.properties
 
- 
getFileMapperspublic org.codehaus.plexus.components.io.filemappers.FileMapper[] getFileMappers()- Returns:
- FileMappers to be used for rewriting each target path, or- nullif no rewriting shall happen
- Since:
- 3.1.2
 
- 
setFileMapperspublic void setFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers) - Parameters:
- fileMappers-- FileMappers to be used for rewriting each target path, or- nullif no rewriting shall happen
- Since:
- 3.1.2
 
 
-