Skip to content

Commit

Permalink
[MJARSIGNER-48] Mark verify and sign Mojos thread safe (#2)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lasselindqvist authored Dec 20, 2023
1 parent 54a204e commit 1e1ae5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* @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 {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @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 {

/**
Expand Down

0 comments on commit 1e1ae5d

Please sign in to comment.