in src/main/java/org/apache/maven/shared/verifier/Verifier.java [537:569]
public String getArtifactPath(String gid, String aid, String version, String ext, String classifier) {
if (classifier != null && classifier.length() == 0) {
classifier = null;
}
if ("maven-plugin".equals(ext)) {
ext = "jar";
}
if ("coreit-artifact".equals(ext)) {
ext = "jar";
classifier = "it";
}
if ("test-jar".equals(ext)) {
ext = "jar";
classifier = "tests";
}
String repositoryPath;
if ("legacy".equals(localRepoLayout)) {
repositoryPath = gid + "/" + ext + "s/" + aid + "-" + version + "." + ext;
} else if ("default".equals(localRepoLayout)) {
repositoryPath = gid.replace('.', '/');
repositoryPath = repositoryPath + "/" + aid + "/" + version;
repositoryPath = repositoryPath + "/" + aid + "-" + version;
if (classifier != null) {
repositoryPath = repositoryPath + "-" + classifier;
}
repositoryPath = repositoryPath + "." + ext;
} else {
throw new IllegalStateException("Unknown layout: " + localRepoLayout);
}
return localRepo + "/" + repositoryPath;
}