diff --git a/core/src/main/java/lucee/runtime/mvn/MavenUtil.java b/core/src/main/java/lucee/runtime/mvn/MavenUtil.java index 907208e7d0..a809d26198 100644 --- a/core/src/main/java/lucee/runtime/mvn/MavenUtil.java +++ b/core/src/main/java/lucee/runtime/mvn/MavenUtil.java @@ -381,16 +381,18 @@ public static void download(POM pom, Collection repositories, String if (entity != null) { Exception ex = null; InputStream is = null; + Resource tmp = SystemUtil.getTempFile(type, false); try { is = entity.getContent(); - IOUtil.copy(is, res, false); + IOUtil.copy(is, tmp, false); } catch (IOException e) { ex = e; } finally { IOUtil.closeEL(is); - HTTPUtil.validateDownload(url, response, res, true, ex); + HTTPUtil.validateDownload(url, response, tmp, true, ex); + tmp.moveTo(res); } } } diff --git a/core/src/main/java/lucee/runtime/mvn/POM.java b/core/src/main/java/lucee/runtime/mvn/POM.java index 6108ca472e..3692a58947 100644 --- a/core/src/main/java/lucee/runtime/mvn/POM.java +++ b/core/src/main/java/lucee/runtime/mvn/POM.java @@ -466,7 +466,7 @@ public List getAllDependencies() throws IOException { return list; } - private static TreeNode getDependencies(POM pom, boolean recursive, int level, TreeNode node) throws IOException { + private static TreeNode getDependenciesSerial(POM pom, boolean recursive, int level, TreeNode node) throws IOException { try { List deps = pom.getDependencies(); if (deps != null) { @@ -491,7 +491,7 @@ private static TreeNode getDependencies(POM pom, boolean recursive, int lev } } - private static TreeNode getDependenciesAsync(POM pom, boolean recursive, int level, TreeNode node) throws IOException { + private static TreeNode getDependencies(POM pom, boolean recursive, int level, TreeNode node) throws IOException { ExecutorService executor = null; try { List deps = pom.getDependencies(); diff --git a/loader/build.xml b/loader/build.xml index 4e840fb7ba..d9d589e96e 100644 --- a/loader/build.xml +++ b/loader/build.xml @@ -2,7 +2,7 @@ - + diff --git a/loader/pom.xml b/loader/pom.xml index 13b61c1b73..d6a5e82f94 100644 --- a/loader/pom.xml +++ b/loader/pom.xml @@ -3,7 +3,7 @@ org.lucee lucee - 6.2.0.239-SNAPSHOT + 6.2.0.240-SNAPSHOT jar Lucee Loader Build