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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.artifact.Artifact
org.codehaus.plexus.components.io.filemappers.FileMapper[]
getType()
boolean
void
setArtifact
(org.apache.maven.artifact.Artifact artifact) void
setArtifactId
(String theArtifact) void
setClassifier
(String classifier) void
setDestFileName
(String destFileName) void
setEncoding
(String encoding) void
setExcludes
(String excludes) void
setFileMappers
(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers) void
setGroupId
(String groupId) void
setIncludes
(String includes) void
setNeedsProcessing
(boolean needsProcessing) void
setOutputDirectory
(File outputDirectory) void
setOverWrite
(String overWrite) void
void
setVersion
(String version) toString()
-
Constructor Details
-
ArtifactItem
public ArtifactItem()Default ctor. -
ArtifactItem
public ArtifactItem(org.apache.maven.artifact.Artifact artifact) - Parameters:
artifact
-Artifact
-
-
Method Details
-
getArtifactId
- Specified by:
getArtifactId
in interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- Returns the artifactId.
-
setArtifactId
- Parameters:
theArtifact
- The artifactId to set.
-
getGroupId
- Specified by:
getGroupId
in interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- Returns the groupId.
-
setGroupId
- Parameters:
groupId
- The groupId to set.
-
getType
- Specified by:
getType
in interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- Returns the type.
-
setType
- Parameters:
type
- The type to set.
-
getVersion
- Specified by:
getVersion
in interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- Returns the version.
-
setVersion
- Parameters:
version
- The version to set.
-
getBaseVersion
- Returns:
- Returns the base version.
-
getClassifier
- Specified by:
getClassifier
in interfaceorg.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 destFileName to set.
-
isNeedsProcessing
public boolean isNeedsProcessing()- Returns:
- Returns the needsProcessing.
-
setNeedsProcessing
public void setNeedsProcessing(boolean needsProcessing) - Parameters:
needsProcessing
- The needsProcessing to set.
-
getOverWrite
- Returns:
- Returns 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
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()- Returns:
- Returns the artifact.
-
setArtifact
public 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 i.e.**\/*.xml, **\/*.properties
-
getIncludes
- Returns:
- Returns a comma separated list of included items
-
setIncludes
- Parameters:
includes
- A comma separated list of items to include i.e.**\/*.xml, **\/*.properties
-
getFileMappers
public org.codehaus.plexus.components.io.filemappers.FileMapper[] getFileMappers()- Returns:
FileMapper
s to be used for rewriting each target path, ornull
if no rewriting shall happen.- Since:
- 3.1.2
-
setFileMappers
public void setFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers) - Parameters:
fileMappers
-FileMapper
s to be used for rewriting each target path, ornull
if no rewriting shall happen.- Since:
- 3.1.2
-