From b5cd9e1a72c1fcb4694784f609aef8e7afc31332 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Fri, 26 Oct 2018 17:45:09 +0200 Subject: [PATCH] Adds threadSafe flag to properly support concurrent runs Closes #72 --- .../com/akathist/maven/plugins/launch4j/Launch4jMojo.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/akathist/maven/plugins/launch4j/Launch4jMojo.java b/src/main/java/com/akathist/maven/plugins/launch4j/Launch4jMojo.java index 67cf73d..55fe767 100644 --- a/src/main/java/com/akathist/maven/plugins/launch4j/Launch4jMojo.java +++ b/src/main/java/com/akathist/maven/plugins/launch4j/Launch4jMojo.java @@ -57,7 +57,12 @@ /** * Wraps a jar in a Windows executable. */ -@Mojo(name = "launch4j", defaultPhase = LifecyclePhase.PACKAGE, requiresDependencyResolution = ResolutionScope.RUNTIME) +@Mojo( + name = "launch4j", + defaultPhase = LifecyclePhase.PACKAGE, + requiresDependencyResolution = ResolutionScope.RUNTIME, + threadSafe = true +) public class Launch4jMojo extends AbstractMojo { private static final String LAUNCH4J_ARTIFACT_ID = "launch4j";