Class ModularArtifact
java.lang.Object
org.tentackle.maven.plugin.jlink.ModularArtifact
- All Implemented Interfaces:
Comparable<ModularArtifact>
Artifact with module information.
-
Constructor Summary
ConstructorsConstructorDescriptionModularArtifact(org.apache.maven.artifact.Artifact artifact, org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor moduleDescriptor) Creates a modular artifact. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanorg.apache.maven.artifact.ArtifactGets the maven artifact.getFile()Gets the artifact's file.Gets the filename of the artifact.org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptorGets the JPMS module descriptor.Gets the module name.getPath()Gets the path to the artifact's jar file.inthashCode()toString()
-
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 artifactmoduleDescriptor- 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
-
toString
-
getFile
-
getFileName
-
getPath
-
equals
-
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable<ModularArtifact>
-