public String relativeArtifactPath ( char separator ) { String artifactId1 = getArtifactId ( ) ; String version1 = getVersion ( ) ; StringBuilder builder = new StringBuilder ( getGroupId ( ) . replace ( ' ' , separator ) ) ; builder . append ( separator ) . append ( artifactId1 ) . append ( separator ) ; String pathVersion ; final Matcher versionMatcher = snapshotPattern . matcher ( version1 ) ; if ( versionMatcher . find ( ) ) { // it's really a snapshot pathVersion = version1 . substring ( 0 , versionMatcher . start ( ) ) + "-SNAPSHOT" ; } else { pathVersion = version1 ; } builder . append ( pathVersion ) . append ( separator ) . append ( artifactId1 ) . append ( ' ' ) . append ( version1 ) ; return builder . toString ( ) ; }
Create a relative repository path for the given artifact coordinates .