Merge pull request #20 from kalgon/master
RAT-207: Properly report thread safety to Maven
diff --git a/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java b/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java
index 2898b1a..3fa3f4e 100644
--- a/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java
+++ b/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java
@@ -45,7 +45,7 @@
/**
* Run Rat to perform a violation check.
*/
-@Mojo(name = "check", defaultPhase = LifecyclePhase.VALIDATE)
+@Mojo(name = "check", defaultPhase = LifecyclePhase.VALIDATE, threadSafe = true)
public class RatCheckMojo extends AbstractRatMojo {
/**
* Where to store the report.
diff --git a/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatReportMojo.java b/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatReportMojo.java
index 396009d..f34b044 100644
--- a/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatReportMojo.java
+++ b/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatReportMojo.java
@@ -60,7 +60,7 @@
* Generates a report with Rat's output.
*/
@SuppressWarnings("deprecation") // MavenReport invokes the deprecated Sink implementation
-@Mojo(name = "rat", requiresDependencyResolution = ResolutionScope.TEST)
+@Mojo(name = "rat", requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true)
public class RatReportMojo extends AbstractRatMojo implements MavenReport {
public static final String DOT_HTML = ".html";
@Component
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 525a597..fbf71c6 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -55,6 +55,9 @@
<body>
<release version="0.14-SNAPSHOT" date="2020-xx-xx" description="Current SNAPSHOT - to be done">
+ <action issue="RAT-207" type="fix" due-to="Xavier Dury" dev="pottlinger">
+ Properly report thread-safeness to Maven.
+ </action>
<action issue="RAT-281" type="fix" dev="pottlinger">
Update to latest Commons IO to fix CVE-2021-29425 (Moderate severity).
</action>