Skip to content

Commit 1e1ae5d

Browse files
[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.
1 parent 54a204e commit 1e1ae5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/apache/maven/plugins/jarsigner/JarsignerSignMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @author <a href="[email protected]">Christian Schulte</a>
4949
* @since 1.0
5050
*/
51-
@Mojo(name = "sign", defaultPhase = LifecyclePhase.PACKAGE)
51+
@Mojo(name = "sign", defaultPhase = LifecyclePhase.PACKAGE, threadSafe = true)
5252
public class JarsignerSignMojo extends AbstractJarsignerMojo {
5353

5454
/**

src/main/java/org/apache/maven/plugins/jarsigner/JarsignerVerifyMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @author <a href="[email protected]">Christian Schulte</a>
3939
* @since 1.0
4040
*/
41-
@Mojo(name = "verify", defaultPhase = LifecyclePhase.VERIFY)
41+
@Mojo(name = "verify", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true)
4242
public class JarsignerVerifyMojo extends AbstractJarsignerMojo {
4343

4444
/**

0 commit comments

Comments
 (0)