- protected Path downloadMaven(URL url, Path dir, M2Artifact artifact, boolean sources) throws IOException {
- return download(url, dir, artifact.getGroupId() + '/' + artifact.getArtifactId() + "-" + artifact.getVersion()
- + (sources ? "-sources" : "") + ".jar");
+ protected Path downloadMaven(URL url, M2Artifact artifact, boolean sources) throws IOException {
+ return download(url, mavenBase, artifact.getGroupId().replace(".", "/") //
+ + '/' + artifact.getArtifactId() + '/' + artifact.getVersion() //
+ + '/' + artifact.getArtifactId() + "-" + artifact.getVersion() + (sources ? "-sources" : "") + ".jar");