Class DefaultArtifactHandler

java.lang.Object
org.apache.maven.artifact.handler.DefaultArtifactHandler
All Implemented Interfaces:
ArtifactHandler

public class DefaultArtifactHandler extends Object implements ArtifactHandler
  • Constructor Details

    • DefaultArtifactHandler

      @Deprecated public DefaultArtifactHandler()
      Deprecated.
      This ctor is present only for Plexus XML defined component compatibility, do not use it.
      Default ctor for Plexus compatibility, as many plugins have artifact handlers declared in legacy Plexus XML. Do not use directly!
    • DefaultArtifactHandler

      public DefaultArtifactHandler(String type)
    • DefaultArtifactHandler

      public DefaultArtifactHandler(String type, String extension, String classifier, String directory, String packaging, boolean includesDependencies, String language, boolean addedToClasspath)
  • Method Details

    • getType

      public String getType()
    • getExtension

      public String getExtension()
      Description copied from interface: ArtifactHandler
      Returns the file name extension of the artifact; e.g. "jar", "pom", "xml", etc.
      Specified by:
      getExtension in interface ArtifactHandler
      Returns:
      the file extension
    • setExtension

      public void setExtension(String extension)
    • getClassifier

      public String getClassifier()
      Description copied from interface: ArtifactHandler
      Returns the default classifier used if a different one is not set in pom.xml.
      Specified by:
      getClassifier in interface ArtifactHandler
      Returns:
      the classifier
    • setClassifier

      public void setClassifier(String classifier)
    • getDirectory

      public String getDirectory()
      Specified by:
      getDirectory in interface ArtifactHandler
    • setDirectory

      public void setDirectory(String directory)
    • getPackaging

      public String getPackaging()
      Specified by:
      getPackaging in interface ArtifactHandler
    • setPackaging

      public void setPackaging(String packaging)
    • isIncludesDependencies

      public boolean isIncludesDependencies()
      Specified by:
      isIncludesDependencies in interface ArtifactHandler
    • setIncludesDependencies

      public void setIncludesDependencies(boolean includesDependencies)
    • getLanguage

      public String getLanguage()
      Specified by:
      getLanguage in interface ArtifactHandler
    • setLanguage

      public void setLanguage(String language)
    • isAddedToClasspath

      @Deprecated public boolean isAddedToClasspath()
      Deprecated.
      Description copied from interface: ArtifactHandler
      Specifies if the artifact contains java classes and can be added to the classpath. Whether the artifact should be added to the classpath depends on other dependency properties.
      Specified by:
      isAddedToClasspath in interface ArtifactHandler
      Returns:
      if the artifact can be added to the class path
    • setAddedToClasspath

      @Deprecated public void setAddedToClasspath(boolean addedToClasspath)
      Deprecated.