Class ModularArtifact

    • Constructor Detail

      • 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 Detail

      • 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
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object