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.DependableCoordinateArtifactItem 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.ArtifactartifactArtifact Itemprivate java.lang.StringartifactIdName of Artifactprivate java.lang.StringclassifierClassifier for Artifact (tests,sources,etc)private java.lang.StringdestFileNameProvides ability to change destination file nameprivate java.lang.StringencodingEncoding of artifact.private java.lang.StringexcludesA comma separated list of file patterns to exclude when unpacking the artifact.private org.codehaus.plexus.components.io.filemappers.FileMapper[]fileMappersFileMappers to be used for rewriting each target path, ornullif no rewriting shall happen.private java.lang.StringgroupIdGroup Id of Artifactprivate java.lang.StringincludesA comma separated list of file patterns to include when unpacking the artifact.private booleanneedsProcessingprivate java.io.FileoutputDirectoryLocation to use for this Artifact.private java.lang.StringoverWriteForce Overwrite..this is the one to set in pomprivate java.lang.StringtypeType of Artifact (War,Jar,etc)private java.lang.StringversionVersion 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.StringfilterEmptyString(java.lang.String in)org.apache.maven.artifact.ArtifactgetArtifact()java.lang.StringgetArtifactId()java.lang.StringgetBaseVersion()java.lang.StringgetClassifier()java.lang.StringgetDestFileName()java.lang.StringgetEncoding()java.lang.StringgetExcludes()org.codehaus.plexus.components.io.filemappers.FileMapper[]getFileMappers()java.lang.StringgetGroupId()java.lang.StringgetIncludes()java.io.FilegetOutputDirectory()java.lang.StringgetOverWrite()java.lang.StringgetType()java.lang.StringgetVersion()booleanisNeedsProcessing()voidsetArtifact(org.apache.maven.artifact.Artifact artifact)voidsetArtifactId(java.lang.String theArtifact)voidsetClassifier(java.lang.String classifier)voidsetDestFileName(java.lang.String destFileName)voidsetEncoding(java.lang.String encoding)voidsetExcludes(java.lang.String excludes)voidsetFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers)voidsetGroupId(java.lang.String groupId)voidsetIncludes(java.lang.String includes)voidsetNeedsProcessing(boolean needsProcessing)voidsetOutputDirectory(java.io.File outputDirectory)voidsetOverWrite(java.lang.String overWrite)voidsetType(java.lang.String type)voidsetVersion(java.lang.String version)java.lang.StringtoString()
-
-
-
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
FileMappers to be used for rewriting each target path, ornullif 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:
getArtifactIdin 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:
getGroupIdin 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:
getTypein 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:
getVersionin 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:
getClassifierin 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:
toStringin 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:
FileMappers to be used for rewriting each target path, ornullif no rewriting shall happen.- Since:
- 3.1.2
-
setFileMappers
public void setFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers)
- Parameters:
fileMappers-FileMappers to be used for rewriting each target path, ornullif no rewriting shall happen.- Since:
- 3.1.2
-
-