We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e453f87 commit 2848c12Copy full SHA for 2848c12
src/main/java/Maven3Version.java
@@ -60,6 +60,10 @@ private void downloadMavenZip() throws IOException {
60
URL url = new URL(urlAsString);
61
ReadableByteChannel readableByteChannel = Channels.newChannel(url.openStream());
62
String mavenZipFilePath = findMavenZipFilePath();
63
+ File mavenDownloadDir = new File(BenchProperties.INSTANCE.getMavenBinariesPath());
64
+ if(!mavenDownloadDir.exists()) {
65
+ mavenDownloadDir.mkdir();
66
+ }
67
FileOutputStream fileOutputStream = new FileOutputStream(mavenZipFilePath);
68
FileChannel fileChannel = fileOutputStream.getChannel();
69
fileChannel.transferFrom(readableByteChannel, 0, Long.MAX_VALUE);
0 commit comments