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 Details

    • groupId

      @Parameter(required=true) private String groupId
      Group ID of artifact.
    • artifactId

      @Parameter(required=true) private String artifactId
      Name of artifact.
    • version

      @Parameter private String version
      Version of artifact.
    • type

      @Parameter(required=true) private String type
      Type of artifact (War, Jar, etc.)
    • classifier

      @Parameter private String classifier
      Classifier for artifact (tests, sources, etc.)
    • outputDirectory

      @Parameter private File outputDirectory
      Location to use for this artifact. Overrides default location.
    • destFileName

      @Parameter private String destFileName
      Provides ability to change destination file name.
    • overWrite

      private String overWrite
      Force Overwrite. This is the one to set in pom.
    • encoding

      @Parameter private String encoding
      Encoding of artifact. Overrides default encoding.
    • needsProcessing

      private boolean needsProcessing
    • artifact

      private org.apache.maven.artifact.Artifact artifact
      Artifact Item.
    • includes

      private String includes
      A comma separated list of file patterns to include when unpacking the artifact.
    • excludes

      private String excludes
      A comma separated list of file patterns to exclude when unpacking the artifact.
    • fileMappers

      @Parameter private org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers
      FileMappers to be used for rewriting each target path, or null if no rewriting shall happen.
      Since:
      3.1.2
  • Constructor Details

    • ArtifactItem

      public ArtifactItem()
      Default constructor.
    • ArtifactItem

      public ArtifactItem(org.apache.maven.artifact.Artifact artifact)
      Parameters:
      artifact - Artifact
  • Method Details

    • filterEmptyString

      private String filterEmptyString(String in)
    • getArtifactId

      public String getArtifactId()
      Specified by:
      getArtifactId in interface org.apache.maven.shared.transfer.dependencies.DependableCoordinate
      Returns:
      returns the artifact ID
    • setArtifactId

      public void setArtifactId(String theArtifact)
      Parameters:
      theArtifact - the artifact ID to set
    • getGroupId

      public String getGroupId()
      Specified by:
      getGroupId in interface org.apache.maven.shared.transfer.dependencies.DependableCoordinate
      Returns:
      returns the group ID
    • setGroupId

      public void setGroupId(String groupId)
      Parameters:
      groupId - the group ID to set
    • getType

      public String getType()
      Specified by:
      getType in interface org.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:
      getVersion in interface org.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:
      teturns the base version
    • getClassifier

      public String getClassifier()
      Specified by:
      getClassifier in interface org.apache.maven.shared.transfer.dependencies.DependableCoordinate
      Returns:
      classifier
    • setClassifier

      public void setClassifier(String classifier)
      Parameters:
      classifier - classifier
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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 destination file name 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:
      teturns 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; for example, **\/*.xml, **\/*.properties
    • getIncludes

      public String getIncludes()
      Returns:
      returns a comma separated list of items to include
    • setIncludes

      public void setIncludes(String includes)
      Parameters:
      includes - comma separated list of items to include; for example, **\/*.xml, **\/*.properties
    • getFileMappers

      public org.codehaus.plexus.components.io.filemappers.FileMapper[] getFileMappers()
      Returns:
      FileMappers to be used for rewriting each target path, or null if 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, or null if no rewriting shall happen
      Since:
      3.1.2