Class Module

java.lang.Object
org.eclipse.aether.artifact.AbstractArtifact
com.isomorphic.maven.packaging.Module
All Implemented Interfaces:
Comparable<Module>, org.eclipse.aether.artifact.Artifact

public class Module
extends org.eclipse.aether.artifact.AbstractArtifact
implements Comparable<Module>
Models a Maven artifact, useful when interfacing with a Maven repository, and specifically during install and deploy operations.
  • Constructor Details

    • Module

      public Module​(org.apache.maven.model.Model model)
    • Module

      public Module​(org.apache.maven.model.Model model, File file)
  • Method Details

    • isPom

      public Boolean isPom()
    • attach

      public void attach​(File file, String classifier)
      Convenience method for attaching SubArtifacts to this Artifact.
      Parameters:
      file - The file for this artifact, may be null if none.
      classifier - The classifier for this artifact, may be null if none.
    • getAttachments

      public org.eclipse.aether.artifact.Artifact[] getAttachments()
    • getGroupId

      public String getGroupId()
      Specified by:
      getGroupId in interface org.eclipse.aether.artifact.Artifact
    • setGroupId

      public void setGroupId​(String groupId)
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface org.eclipse.aether.artifact.Artifact
    • setVersion

      public org.eclipse.aether.artifact.Artifact setVersion​(String version)
      Specified by:
      setVersion in interface org.eclipse.aether.artifact.Artifact
      Overrides:
      setVersion in class org.eclipse.aether.artifact.AbstractArtifact
    • getClassifier

      public String getClassifier()
      Specified by:
      getClassifier in interface org.eclipse.aether.artifact.Artifact
    • setClassifier

      public void setClassifier​(String classifier)
    • getExtension

      public String getExtension()
      Specified by:
      getExtension in interface org.eclipse.aether.artifact.Artifact
    • setExtension

      public void setExtension​(String extension)
    • getFile

      public File getFile()
      Specified by:
      getFile in interface org.eclipse.aether.artifact.Artifact
    • setFile

      public org.eclipse.aether.artifact.Artifact setFile​(File file)
      Specified by:
      setFile in interface org.eclipse.aether.artifact.Artifact
      Overrides:
      setFile in class org.eclipse.aether.artifact.AbstractArtifact
    • getArtifactId

      public String getArtifactId()
      Specified by:
      getArtifactId in interface org.eclipse.aether.artifact.Artifact
    • getProperty

      public String getProperty​(String key, String defaultValue)
      Specified by:
      getProperty in interface org.eclipse.aether.artifact.Artifact
      Overrides:
      getProperty in class org.eclipse.aether.artifact.AbstractArtifact
    • getProperties

      public Map<String,​String> getProperties()
      Specified by:
      getProperties in interface org.eclipse.aether.artifact.Artifact
    • setProperties

      public org.eclipse.aether.artifact.Artifact setProperties​(Map<String,​String> properties)
      Specified by:
      setProperties in interface org.eclipse.aether.artifact.Artifact
      Overrides:
      setProperties in class org.eclipse.aether.artifact.AbstractArtifact
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.eclipse.aether.artifact.AbstractArtifact
    • equals

      public boolean equals​(Object that)
      Overrides:
      equals in class org.eclipse.aether.artifact.AbstractArtifact
    • compareTo

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