public class GAV extends Object
| Constructor and Description |
|---|
GAV() |
GAV(String groupId,
String artifactId,
String version)
Builds an immutable GAV object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static GAV |
from(org.apache.maven.project.MavenProject project)
Builds a GAV object from the given MavenProject object.
|
static GAV |
from(org.apache.maven.model.Model model)
Builds a GAV object from the given Model object.
|
static GAV |
from(org.apache.maven.model.Parent parent)
Builds a GAV object from the given Parent object.
|
String |
getArtifactId()
Retrieves the artifactId.
|
String |
getGroupId()
Retrieves the groupId.
|
String |
getVersion()
Retrieves the version.
|
int |
hashCode() |
void |
setArtifactId(String artifactId) |
void |
setGroupId(String groupId) |
void |
setVersion(String version) |
String |
toString() |
public static GAV from(org.apache.maven.project.MavenProject project)
project - the project to extract info frompublic static GAV from(org.apache.maven.model.Model model)
model - the project model to extract info frompublic static GAV from(org.apache.maven.model.Parent parent)
parent - the parent to extract info frompublic String getGroupId()
public void setGroupId(String groupId)
public String getArtifactId()
public void setArtifactId(String artifactId)
public String getVersion()
public void setVersion(String version)
Copyright © 2021. All rights reserved.