java.lang.Object
org.tentackle.maven.plugin.jlink.ModularArtifact
All Implemented Interfaces:
Comparable<ModularArtifact>

public class ModularArtifact extends Object implements Comparable<ModularArtifact>
Artifact with module information.
  • Constructor Details

    • ModularArtifact

      public ModularArtifact(org.apache.maven.artifact.Artifact artifact, org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor moduleDescriptor)
      Creates a modular artifact.
      Parameters:
      artifact - the maven artifact
      moduleDescriptor - the JPMS module descriptor
  • Method Details

    • getArtifact

      public org.apache.maven.artifact.Artifact getArtifact()
      Gets the maven artifact.
      Returns:
      the artifact
    • getModuleDescriptor

      public org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor getModuleDescriptor()
      Gets the JPMS module descriptor.
      Returns:
      the module descriptor
    • getModuleName

      public String getModuleName()
      Gets the module name.
      Returns:
      the module name, never null
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFile

      public File getFile()
      Gets the artifact's file.
      Returns:
      the file
    • getFileName

      public String getFileName()
      Gets the filename of the artifact.
      Returns:
      the name of the jar file
    • getPath

      public String getPath()
      Gets the path to the artifact's jar file.
      Returns:
      the path
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(ModularArtifact o)
      Specified by:
      compareTo in interface Comparable<ModularArtifact>