Package com.isomorphic.maven.packaging
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 Summary
-
Method Summary
Modifier and Type Method Description voidattach(File file, String classifier)Convenience method for attachingSubArtifactsto this Artifact.intcompareTo(Module o)booleanequals(Object that)StringgetArtifactId()org.eclipse.aether.artifact.Artifact[]getAttachments()StringgetClassifier()StringgetExtension()FilegetFile()StringgetGroupId()Map<String,String>getProperties()StringgetProperty(String key, String defaultValue)StringgetVersion()inthashCode()BooleanisPom()voidsetClassifier(String classifier)voidsetExtension(String extension)org.eclipse.aether.artifact.ArtifactsetFile(File file)voidsetGroupId(String groupId)org.eclipse.aether.artifact.ArtifactsetProperties(Map<String,String> properties)org.eclipse.aether.artifact.ArtifactsetVersion(String version)
-
Constructor Details
-
Method Details
-
isPom
-
attach
Convenience method for attachingSubArtifactsto this Artifact.- Parameters:
file- The file for this artifact, may benullif none.classifier- The classifier for this artifact, may benullif none.
-
getAttachments
public org.eclipse.aether.artifact.Artifact[] getAttachments() -
getGroupId
- Specified by:
getGroupIdin interfaceorg.eclipse.aether.artifact.Artifact
-
setGroupId
-
getVersion
- Specified by:
getVersionin interfaceorg.eclipse.aether.artifact.Artifact
-
setVersion
- Specified by:
setVersionin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
setVersionin classorg.eclipse.aether.artifact.AbstractArtifact
-
getClassifier
- Specified by:
getClassifierin interfaceorg.eclipse.aether.artifact.Artifact
-
setClassifier
-
getExtension
- Specified by:
getExtensionin interfaceorg.eclipse.aether.artifact.Artifact
-
setExtension
-
getFile
- Specified by:
getFilein interfaceorg.eclipse.aether.artifact.Artifact
-
setFile
- Specified by:
setFilein interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
setFilein classorg.eclipse.aether.artifact.AbstractArtifact
-
getArtifactId
- Specified by:
getArtifactIdin interfaceorg.eclipse.aether.artifact.Artifact
-
getProperty
- Specified by:
getPropertyin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
getPropertyin classorg.eclipse.aether.artifact.AbstractArtifact
-
getProperties
- Specified by:
getPropertiesin interfaceorg.eclipse.aether.artifact.Artifact
-
setProperties
- Specified by:
setPropertiesin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
setPropertiesin classorg.eclipse.aether.artifact.AbstractArtifact
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.eclipse.aether.artifact.AbstractArtifact
-
equals
- Overrides:
equalsin classorg.eclipse.aether.artifact.AbstractArtifact
-
compareTo
- Specified by:
compareToin interfaceComparable<Module>
-