Interface ArtifactHandler


public interface ArtifactHandler
An artifact handler contains information explaining how an artifact plugs into the Maven build:
  • Information needed to find the artifact file in a repository including extension and classifier
  • Information on how to use the artifact as a dependency: whether to add it to the classpath, whether to load its dependencies transitively
  • Field Details Link icon

  • Method Details Link icon

    • getExtension Link icon

      String getExtension()
      Returns the file name extension of the artifact; e.g. "jar", "pom", "xml", etc.
      Returns:
      the file extension
    • getDirectory Link icon

      String getDirectory()
    • getClassifier Link icon

      String getClassifier()
      Returns the default classifier used if a different one is not set in pom.xml.
      Returns:
      the classifier
    • getPackaging Link icon

      String getPackaging()
    • isIncludesDependencies Link icon

      boolean isIncludesDependencies()
    • getLanguage Link icon

      String getLanguage()
    • isAddedToClasspath Link icon

      @Deprecated boolean isAddedToClasspath()
      Deprecated.
      A value of true does not mean that the dependency should be placed on the classpath. See JavaPathType instead for better analysis.
      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.
      Returns:
      if the artifact can be added to the class path