Skip to content

Commit 9bfaf54

Browse files
authored
Document that V4 mojo are supposed to be threadsafe (#1675)
1 parent 6e6c262 commit 9bfaf54

File tree

1 file changed

+2
-0
lines changed
  • api/maven-api-core/src/main/java/org/apache/maven/api/plugin

1 file changed

+2
-0
lines changed

api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Mojo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import org.apache.maven.api.annotations.Consumer;
2222
import org.apache.maven.api.annotations.Experimental;
23+
import org.apache.maven.api.annotations.ThreadSafe;
2324

2425
/**
2526
* This interface forms the contract required for Mojos to interact with the Maven infrastructure.
@@ -31,6 +32,7 @@
3132
@Experimental
3233
@FunctionalInterface
3334
@Consumer
35+
@ThreadSafe
3436
public interface Mojo {
3537
/**
3638
* Perform whatever build-process behavior this {@code Mojo} implements.

0 commit comments

Comments
 (0)