public class ArtifactCoordinate extends Object
DefaultArtifact implementation doesn't
support optional versions which is why we needed this class).| Constructor and Description |
|---|
ArtifactCoordinate(String groupId,
String artifactId,
String type,
String version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
String |
getArtifactId() |
String |
getGroupId() |
String |
getType() |
String |
getVersion() |
int |
hashCode() |
static ArtifactCoordinate |
parseArtifacts(String coordinateAsString)
Parse an Artifact coordinate as a String.
|
org.eclipse.aether.artifact.Artifact |
toArtifact(String defaultVersion) |
String |
toString() |
public String getGroupId()
public String getArtifactId()
public String getVersion()
public String getType()
public org.eclipse.aether.artifact.Artifact toArtifact(String defaultVersion)
defaultVersion - the default version is none is definedpublic static ArtifactCoordinate parseArtifacts(String coordinateAsString)
coordinateAsString - the coordinate to parse (e.g. org.xwiki.contrib:myartifact or org.xwiki.contrib:myartifact:jar:1.0-SNAPSHOT or org.xwiki.contrib:myartifact:1.0-SNAPSHOT)ArtifactCoordinate object representing the parsed stringCopyright © 2004–2021 XWiki. All rights reserved.