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 java.lang.Object implements org.apache.maven.shared.transfer.dependencies.DependableCoordinate
ArtifactItem represents information specified in the plugin configuration section for each artifact.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.artifact.Artifact
artifact
Artifact Itemprivate java.lang.String
artifactId
Name of Artifactprivate java.lang.String
classifier
Classifier for Artifact (tests,sources,etc)private java.lang.String
destFileName
Provides ability to change destination file nameprivate java.lang.String
encoding
Encoding of artifact.private java.lang.String
excludes
A comma separated list of file patterns to exclude when unpacking the artifact.private org.codehaus.plexus.components.io.filemappers.FileMapper[]
fileMappers
FileMapper
s to be used for rewriting each target path, ornull
if no rewriting shall happen.private java.lang.String
groupId
Group Id of Artifactprivate java.lang.String
includes
A comma separated list of file patterns to include when unpacking the artifact.private boolean
needsProcessing
private java.io.File
outputDirectory
Location to use for this Artifact.private java.lang.String
overWrite
Force Overwrite..this is the one to set in pomprivate java.lang.String
type
Type of Artifact (War,Jar,etc)private java.lang.String
version
Version of Artifact
-
Constructor Summary
Constructors Constructor Description ArtifactItem()
Default ctor.ArtifactItem(org.apache.maven.artifact.Artifact artifact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
filterEmptyString(java.lang.String in)
org.apache.maven.artifact.Artifact
getArtifact()
java.lang.String
getArtifactId()
java.lang.String
getBaseVersion()
java.lang.String
getClassifier()
java.lang.String
getDestFileName()
java.lang.String
getEncoding()
java.lang.String
getExcludes()
org.codehaus.plexus.components.io.filemappers.FileMapper[]
getFileMappers()
java.lang.String
getGroupId()
java.lang.String
getIncludes()
java.io.File
getOutputDirectory()
java.lang.String
getOverWrite()
java.lang.String
getType()
java.lang.String
getVersion()
boolean
isNeedsProcessing()
void
setArtifact(org.apache.maven.artifact.Artifact artifact)
void
setArtifactId(java.lang.String theArtifact)
void
setClassifier(java.lang.String classifier)
void
setDestFileName(java.lang.String destFileName)
void
setEncoding(java.lang.String encoding)
void
setExcludes(java.lang.String excludes)
void
setFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers)
void
setGroupId(java.lang.String groupId)
void
setIncludes(java.lang.String includes)
void
setNeedsProcessing(boolean needsProcessing)
void
setOutputDirectory(java.io.File outputDirectory)
void
setOverWrite(java.lang.String overWrite)
void
setType(java.lang.String type)
void
setVersion(java.lang.String version)
java.lang.String
toString()
-
-
-
Field Detail
-
groupId
private java.lang.String groupId
Group Id of Artifact
-
artifactId
private java.lang.String artifactId
Name of Artifact
-
version
private java.lang.String version
Version of Artifact
-
type
private java.lang.String type
Type of Artifact (War,Jar,etc)
-
classifier
private java.lang.String classifier
Classifier for Artifact (tests,sources,etc)
-
outputDirectory
private java.io.File outputDirectory
Location to use for this Artifact. Overrides default location.
-
destFileName
private java.lang.String destFileName
Provides ability to change destination file name
-
overWrite
private java.lang.String overWrite
Force Overwrite..this is the one to set in pom
-
encoding
private java.lang.String encoding
Encoding of artifact. Overrides default encoding.
-
needsProcessing
private boolean needsProcessing
-
artifact
private org.apache.maven.artifact.Artifact artifact
Artifact Item
-
includes
private java.lang.String includes
A comma separated list of file patterns to include when unpacking the artifact.
-
excludes
private java.lang.String excludes
A comma separated list of file patterns to exclude when unpacking the artifact.
-
fileMappers
private org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers
FileMapper
s to be used for rewriting each target path, ornull
if no rewriting shall happen.- Since:
- 3.1.2
-
-
Method Detail
-
filterEmptyString
private java.lang.String filterEmptyString(java.lang.String in)
-
getArtifactId
public java.lang.String getArtifactId()
- Specified by:
getArtifactId
in interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- Returns the artifactId.
-
setArtifactId
public void setArtifactId(java.lang.String theArtifact)
- Parameters:
theArtifact
- The artifactId to set.
-
getGroupId
public java.lang.String getGroupId()
- Specified by:
getGroupId
in interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- Returns the groupId.
-
setGroupId
public void setGroupId(java.lang.String groupId)
- Parameters:
groupId
- The groupId to set.
-
getType
public java.lang.String getType()
- Specified by:
getType
in interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- Returns the type.
-
setType
public void setType(java.lang.String type)
- Parameters:
type
- The type to set.
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- Returns the version.
-
setVersion
public void setVersion(java.lang.String version)
- Parameters:
version
- The version to set.
-
getBaseVersion
public java.lang.String getBaseVersion()
- Returns:
- Returns the base version.
-
getClassifier
public java.lang.String getClassifier()
- Specified by:
getClassifier
in interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate
- Returns:
- Classifier.
-
setClassifier
public void setClassifier(java.lang.String classifier)
- Parameters:
classifier
- Classifier.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getOutputDirectory
public java.io.File getOutputDirectory()
- Returns:
- Returns the location.
-
setOutputDirectory
public void setOutputDirectory(java.io.File outputDirectory)
- Parameters:
outputDirectory
- The outputDirectory to set.
-
getDestFileName
public java.lang.String getDestFileName()
- Returns:
- Returns the location.
-
setDestFileName
public void setDestFileName(java.lang.String destFileName)
- 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
public java.lang.String getOverWrite()
- Returns:
- Returns the overWriteSnapshots.
-
setOverWrite
public void setOverWrite(java.lang.String overWrite)
- Parameters:
overWrite
- The overWrite to set.
-
getEncoding
public java.lang.String getEncoding()
- Returns:
- Returns the encoding.
- Since:
- 3.0
-
setEncoding
public void setEncoding(java.lang.String encoding)
- 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
public java.lang.String getExcludes()
- Returns:
- Returns a comma separated list of excluded items
-
setExcludes
public void setExcludes(java.lang.String excludes)
- Parameters:
excludes
- A comma separated list of items to exclude i.e.**\/*.xml, **\/*.properties
-
getIncludes
public java.lang.String getIncludes()
- Returns:
- Returns a comma separated list of included items
-
setIncludes
public void setIncludes(java.lang.String includes)
- 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
-
-