This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jarsigner-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e1ae5d  [MJARSIGNER-48] Mark verify and sign Mojos thread safe (#2)
1e1ae5d is described below

commit 1e1ae5d46399e8c549800bcc608afe22dd6e56fe
Author: lasselindqvist <[email protected]>
AuthorDate: Wed Dec 20 21:37:55 2023 +0200

    [MJARSIGNER-48] Mark verify and sign Mojos thread safe (#2)
    
    The Mojos are safe in the context of Maven 3 parallel builds. However 
running multiple Maven builds on the same signables might cause problems, but 
this is not something that should be covered.
---
 src/main/java/org/apache/maven/plugins/jarsigner/JarsignerSignMojo.java | 2 +-
 .../java/org/apache/maven/plugins/jarsigner/JarsignerVerifyMojo.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerSignMojo.java 
b/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerSignMojo.java
index 75b16e7..aa35596 100644
--- a/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerSignMojo.java
+++ b/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerSignMojo.java
@@ -48,7 +48,7 @@ import 
org.apache.maven.shared.utils.cli.javatool.JavaToolResult;
  * @author <a href="[email protected]">Christian Schulte</a>
  * @since 1.0
  */
-@Mojo(name = "sign", defaultPhase = LifecyclePhase.PACKAGE)
+@Mojo(name = "sign", defaultPhase = LifecyclePhase.PACKAGE, threadSafe = true)
 public class JarsignerSignMojo extends AbstractJarsignerMojo {
 
     /**
diff --git 
a/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerVerifyMojo.java 
b/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerVerifyMojo.java
index af1b800..91edc21 100644
--- a/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerVerifyMojo.java
+++ b/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerVerifyMojo.java
@@ -38,7 +38,7 @@ import 
org.apache.maven.shared.utils.cli.javatool.JavaToolResult;
  * @author <a href="[email protected]">Christian Schulte</a>
  * @since 1.0
  */
-@Mojo(name = "verify", defaultPhase = LifecyclePhase.VERIFY)
+@Mojo(name = "verify", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true)
 public class JarsignerVerifyMojo extends AbstractJarsignerMojo {
 
     /**

Reply via email to