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 |
---|---|
String |
getArtifactId() |
String |
getGroupId() |
String |
getType() |
String |
getVersion() |
static ArtifactCoordinate |
parseArtifacts(String coordinateAsString)
Parse an Artifact oordinate as a String.
|
org.eclipse.aether.artifact.Artifact |
toArtifact(String defaultVersion) |
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–2019 XWiki. All rights reserved.