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

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

commit f2b7e413d464a9775223c9175414f70b5648c439
Author: Jan Hentschel <[email protected]>
AuthorDate: Sun Jul 8 18:36:13 2018 +0200

    NIFI-4216 Marked mojos as ThreadSafe
    
    This closes #6.
    
    Signed-off-by: Bryan Bende <[email protected]>
---
 src/main/java/org/apache/nifi/NarMojo.java                     | 2 +-
 src/main/java/org/apache/nifi/NarProvidedDependenciesMojo.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/nifi/NarMojo.java 
b/src/main/java/org/apache/nifi/NarMojo.java
index 124a978..4110fa6 100644
--- a/src/main/java/org/apache/nifi/NarMojo.java
+++ b/src/main/java/org/apache/nifi/NarMojo.java
@@ -78,7 +78,7 @@ import org.codehaus.plexus.util.StringUtils;
  * simplified to the use case of NarMojo.
  *
  */
-@Mojo(name = "nar", defaultPhase = LifecyclePhase.PACKAGE, threadSafe = false, 
requiresDependencyResolution = ResolutionScope.RUNTIME)
+@Mojo(name = "nar", defaultPhase = LifecyclePhase.PACKAGE, threadSafe = true, 
requiresDependencyResolution = ResolutionScope.RUNTIME)
 public class NarMojo extends AbstractMojo {
 
     private static final String[] DEFAULT_EXCLUDES = new 
String[]{"**/package.html"};
diff --git a/src/main/java/org/apache/nifi/NarProvidedDependenciesMojo.java 
b/src/main/java/org/apache/nifi/NarProvidedDependenciesMojo.java
index 15da9ad..a9ec9b2 100644
--- a/src/main/java/org/apache/nifi/NarProvidedDependenciesMojo.java
+++ b/src/main/java/org/apache/nifi/NarProvidedDependenciesMojo.java
@@ -50,7 +50,7 @@ import java.util.Map;
  * not project those dependences using the traditional maven dependency 
plugin. This plugin will override that setting in order to print the 
dependencies being
  * inherited at runtime.
  */
-@Mojo(name = "provided-nar-dependencies", defaultPhase = 
LifecyclePhase.PACKAGE, threadSafe = false, requiresDependencyResolution = 
ResolutionScope.RUNTIME)
+@Mojo(name = "provided-nar-dependencies", defaultPhase = 
LifecyclePhase.PACKAGE, threadSafe = true, requiresDependencyResolution = 
ResolutionScope.RUNTIME)
 public class NarProvidedDependenciesMojo extends AbstractMojo {
 
     private static final String NAR = "nar";

Reply via email to