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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.maven.artifact.ArtifactArtifact Itemprivate StringName of Artifactprivate StringClassifier for Artifact (tests,sources,etc)private StringProvides ability to change destination file nameprivate StringEncoding of artifact.private StringA comma separated list of file patterns to exclude when unpacking the artifact.private org.codehaus.plexus.components.io.filemappers.FileMapper[]FileMappers to be used for rewriting each target path, ornullif no rewriting shall happen.private StringGroup Id of Artifactprivate StringA comma separated list of file patterns to include when unpacking the artifact.private booleanprivate FileLocation to use for this Artifact.private StringForce Overwrite..this is the one to set in pomprivate StringType of Artifact (War,Jar,etc)private StringVersion of Artifact -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringorg.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()
-
Field Details
-
groupId
Group Id of Artifact -
artifactId
Name of Artifact -
version
Version of Artifact -
type
Type of Artifact (War,Jar,etc) -
classifier
Classifier for Artifact (tests,sources,etc) -
outputDirectory
Location to use for this Artifact. Overrides default location. -
destFileName
Provides ability to change destination file name -
overWrite
Force Overwrite..this is the one to set in pom -
encoding
Encoding of artifact. Overrides default encoding. -
needsProcessing
private boolean needsProcessing -
artifact
private org.apache.maven.artifact.Artifact artifactArtifact Item -
includes
A comma separated list of file patterns to include when unpacking the artifact. -
excludes
A comma separated list of file patterns to exclude when unpacking the artifact. -
fileMappers
@Parameter private org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappersFileMappers to be used for rewriting each target path, ornullif no rewriting shall happen.- Since:
- 3.1.2
-
-
Constructor Details
-
ArtifactItem
public ArtifactItem()Default ctor. -
ArtifactItem
public ArtifactItem(org.apache.maven.artifact.Artifact artifact) - Parameters:
artifact-Artifact
-
-
Method Details
-
filterEmptyString
-
getArtifactId
- Specified by:
getArtifactIdin interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate- Returns:
- Returns the artifactId.
-
setArtifactId
- Parameters:
theArtifact- The artifactId to set.
-
getGroupId
- Specified by:
getGroupIdin interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate- Returns:
- Returns the groupId.
-
setGroupId
- Parameters:
groupId- The groupId to set.
-
getType
- Specified by:
getTypein interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate- Returns:
- Returns the type.
-
setType
- Parameters:
type- The type to set.
-
getVersion
- Specified by:
getVersionin 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:
getClassifierin 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:
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
-