Class 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 Item
      private java.lang.String artifactId
      Name of Artifact
      private java.lang.String classifier
      Classifier for Artifact (tests,sources,etc)
      private java.lang.String destFileName
      Provides ability to change destination file name
      private 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
      FileMappers to be used for rewriting each target path, or null if no rewriting shall happen.
      private java.lang.String groupId
      Group Id of Artifact
      private 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 pom
      private 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)  
    • 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, or null if no rewriting shall happen.
        Since:
        3.1.2
    • Constructor Detail

      • ArtifactItem

        public ArtifactItem()
        Default ctor.
      • ArtifactItem

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

      • filterEmptyString

        private java.lang.String filterEmptyString​(java.lang.String in)
      • getArtifactId

        public java.lang.String getArtifactId()
        Specified by:
        getArtifactId in interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 class java.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, 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