MavenArtifactDescriptor implements Comparable<MavenArtifactDescriptor> { public String mavenGav() { return this.groupId + COLON + this.artifactId + COLON + (this.type == null ? JAR_PACKAGING : this.type) + COLON + (this.classifier == null ? "" : this.classifier + COLON) + this.version; } private  MavenArtifactDescriptor();  MavenArtifactDescriptor(String groupId, String artifactId, String version);  MavenArtifactDescriptor(String groupId, String artifactId, String type, String classifier, String version); static Builder build(); static MavenArtifactDescriptor fromMscGav(String gav); static MavenArtifactDescriptor fromMavenGav(String gav); @Override int compareTo(MavenArtifactDescriptor that); String groupId(); String artifactId(); String version(); String classifier(); String type(); String mscGav(); ArtifactCoordinates mscCoordinates(); String mavenGav(); String repoPath(boolean forJar); String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testMavenGav() { MavenArtifactDescriptor desc = MavenArtifactDescriptor.build() .groupId("org.wildfly.swarm") .artifactId("fish") .version("1.0").build(); assertThat(desc.mavenGav()).isEqualTo("org.wildfly.swarm:fish:jar:1.0"); }