MavenArtifactDescriptor implements Comparable<MavenArtifactDescriptor> { public String repoPath(boolean forJar) { char delim = File.separatorChar; if (forJar) { delim = '/'; } String[] groupParts = this.groupId.split("\\."); StringBuffer p = new StringBuffer(); for (String groupPart : groupParts) { p.append(groupPart) .append(delim); } p.append(this.artifactId) .append(delim); p.append(this.version) .append(delim); p.append(this.artifactId) .append('-') .append(this.version); if (this.classifier != null) { p.append('-') .append(this.classifier); } p.append('.').append(this.type); return p.toString(); } 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 testRepoPath() { MavenArtifactDescriptor desc = MavenArtifactDescriptor.build() .groupId("org.wildfly.swarm") .artifactId("fish") .version("1.0").build(); assertThat(desc.repoPath(true)).isEqualTo("org/wildfly/swarm/fish/1.0/fish-1.0.jar"); }