public static String getRepositorySubpath(MavenCoordinates artifact) {
		StringBuffer buf = new StringBuffer();
		String[] groupDirs = artifact.getGroupId().split("\\.");
		for (String dir : groupDirs) {
			buf.append(dir).append("/");
		}
		buf.append(artifact.getArtifactId()).append("/").append(artifact.getVersion());
		return buf.toString();
	}
public static String getRepositorySubpath ( MavenCoordinates artifact ) { StringBuffer buf = new StringBuffer ( ) ; String [ ] groupDirs = artifact . getGroupId ( ) . split ( "\\." ) ; for ( String dir : groupDirs ) { buf . append ( dir ) . append ( "/" ) ; } buf . append ( artifact . getArtifactId ( ) ) . append ( "/" ) . append ( artifact . getVersion ( ) ) ; return buf . toString ( ) ; }
Gets the expected path within a Maven repository for the given Maven
artifact, based on its Maven coordinates.

@param artifact
the MavenArtifact whose path you want
@return the path within a Maven repository where the artifact should be
stored