File (MavenId id, File localRepository, @NotNull String extension, @Nullable String classifier) { String relPath = id.getGroupId().replace(".", "/"); relPath += "/" + id.getArtifactId(); relPath += "/" + id.getVersion(); relPath += "/" + id.getArtifactId() + "-" + id.getVersion(); relPath = classifier == null ? relPath + "." + extension : relPath + "-" + classifier + "." + extension; return new File(localRepository, relPath); }