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
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 org.apache.maven.artifact.ArtifactgetArtifact()StringgetArtifactId()StringgetBaseVersion()StringgetClassifier()StringgetDestFileName()StringgetEncoding()StringgetExcludes()StringgetGroupId()StringgetIncludes()FilegetOutputDirectory()StringgetOverWrite()StringgetType()StringgetVersion()booleanisNeedsProcessing()voidsetArtifact(org.apache.maven.artifact.Artifact artifact)voidsetArtifactId(String theArtifact)voidsetClassifier(String classifier)voidsetDestFileName(String destFileName)voidsetEncoding(String encoding)voidsetExcludes(String excludes)voidsetGroupId(String groupId)voidsetIncludes(String includes)voidsetNeedsProcessing(boolean needsProcessing)voidsetOutputDirectory(File outputDirectory)voidsetOverWrite(String overWrite)voidsetType(String type)voidsetVersion(String version)StringtoString()
-
-
-
Method Detail
-
getArtifactId
public String getArtifactId()
- Specified by:
getArtifactIdin interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate- Returns:
- Returns the artifactId.
-
setArtifactId
public void setArtifactId(String theArtifact)
- Parameters:
theArtifact- The artifactId to set.
-
getGroupId
public String getGroupId()
- Specified by:
getGroupIdin interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate- Returns:
- Returns the groupId.
-
setGroupId
public void setGroupId(String groupId)
- Parameters:
groupId- The groupId to set.
-
getType
public String getType()
- Specified by:
getTypein interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate- Returns:
- Returns the type.
-
setType
public void setType(String type)
- Parameters:
type- The type to set.
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate- Returns:
- Returns the version.
-
setVersion
public void setVersion(String version)
- Parameters:
version- The version to set.
-
getBaseVersion
public String getBaseVersion()
- Returns:
- Returns the base version.
-
getClassifier
public String getClassifier()
- Specified by:
getClassifierin interfaceorg.apache.maven.shared.transfer.dependencies.DependableCoordinate- Returns:
- Classifier.
-
setClassifier
public void setClassifier(String classifier)
- Parameters:
classifier- Classifier.
-
getOutputDirectory
public File getOutputDirectory()
- Returns:
- Returns the location.
-
setOutputDirectory
public void setOutputDirectory(File outputDirectory)
- Parameters:
outputDirectory- The outputDirectory to set.
-
getDestFileName
public String getDestFileName()
- Returns:
- Returns the location.
-
setDestFileName
public void setDestFileName(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 String getOverWrite()
- Returns:
- Returns the overWriteSnapshots.
-
setOverWrite
public void setOverWrite(String overWrite)
- Parameters:
overWrite- The overWrite to set.
-
getEncoding
public String getEncoding()
- Returns:
- Returns the encoding.
- Since:
- 3.0
-
setEncoding
public void setEncoding(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 String getExcludes()
- Returns:
- Returns a comma separated list of excluded items
-
setExcludes
public void setExcludes(String excludes)
- Parameters:
excludes- A comma separated list of items to exclude i.e.**\/*.xml, **\/*.properties
-
getIncludes
public String getIncludes()
- Returns:
- Returns a comma separated list of included items
-
setIncludes
public void setIncludes(String includes)
- Parameters:
includes- A comma separated list of items to include i.e.**\/*.xml, **\/*.properties
-
-