String[] p = location.split("/");
if (p.length >= 4 && p[p.length-1].startsWith(p[p.length-3] + "-" + p[p.length-2])) {
MavenArtifactProvisionOption opt = new MavenArtifactProvisionOption();
int artifactIdVersionLength = p[p.length-3].length() + 1 + p[p.length-2].length(); // (artifactId + "-" + version).length
if (p[p.length-1].charAt(artifactIdVersionLength) == '-') {
opt.classifier((p[p.length-1].substring(artifactIdVersionLength + 1, p[p.length-1].lastIndexOf('.'))));
}
StringBuffer sb = new StringBuffer();
for (int j = 0; j < p.length - 3; j++) {
if (j > 0) {
sb.append('.');