public static String getMavenPath ( PluginCoordinates coordinates ) { StringBuilder artifactSubPath = new StringBuilder ( ) ; artifactSubPath . append ( coordinates . getGroupId ( ) . replace ( ' ' , ' ' ) ) ; artifactSubPath . append ( ' ' ) ; artifactSubPath . append ( coordinates . getArtifactId ( ) ) ; artifactSubPath . append ( ' ' ) ; artifactSubPath . append ( coordinates . getVersion ( ) ) ; artifactSubPath . append ( ' ' ) ; artifactSubPath . append ( coordinates . getArtifactId ( ) ) ; artifactSubPath . append ( ' ' ) ; artifactSubPath . append ( coordinates . getVersion ( ) ) ; if ( coordinates . getClassifier ( ) != null ) { artifactSubPath . append ( ' ' ) ; artifactSubPath . append ( coordinates . getClassifier ( ) ) ; } artifactSubPath . append ( ' ' ) ; artifactSubPath . append ( coordinates . getType ( ) ) ; return artifactSubPath . toString ( ) ; }
Calculates the relative path of the artifact from the given coordinates .