From d089db15852f466a61612a71c723002d00ab5ed5 Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Fri, 20 Dec 2024 20:23:55 +0100 Subject: [PATCH] store downloads first in temp file and then rename and load maven downloads again in parallel --- core/src/main/java/lucee/runtime/mvn/POM.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core/src/main/java/lucee/runtime/mvn/POM.java b/core/src/main/java/lucee/runtime/mvn/POM.java index 3692a58947..46915b80c0 100644 --- a/core/src/main/java/lucee/runtime/mvn/POM.java +++ b/core/src/main/java/lucee/runtime/mvn/POM.java @@ -144,7 +144,21 @@ private POM(Resource localDirectory, Collection repositories, String this.dependencyScope = dependencyScope; this.log = log; + initXMLAsync(); cache.put(id(), this); + + } + + public void initXMLAsync() { + ThreadUtil.getThread(() -> { + synchronized (token) { + try { + initXML(); + } + catch (IOException e) { + } + } + }, true).start(); } void initXML() throws IOException {