From 04e5c4e07716f0fe76a8707fa5b49e9ff9fb4d9c Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 7 May 2021 12:07:16 +1000 Subject: [PATCH] Issue #6224 make jspc mojo maven threadsafe (#6230) * Issue #6224 make jspc mojo maven threadsafe Signed-off-by: olivier lamy * restore previous behaviour Signed-off-by: olivier lamy --- .../src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java b/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java index 0353f10929c..d7b162f1327 100644 --- a/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java +++ b/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java @@ -65,7 +65,8 @@ import org.eclipse.jetty.util.resource.Resource; *

* Runs jspc compiler to produce .java and .class files */ -@Mojo(name = "jspc", defaultPhase = LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME) +@Mojo(name = "jspc", defaultPhase = LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, + threadSafe = true) public class JspcMojo extends AbstractMojo { public static final String END_OF_WEBAPP = "";