This is an automated email from the ASF dual-hosted git repository. pottlinger pushed a commit to branch update-doxia-tools in repository https://gitbox.apache.org/repos/asf/creadur-rat.git
commit acebaaadc6b2b6f8349abc7447787d242da44ae6 Author: Xavier Dury <[email protected]> AuthorDate: Thu Apr 22 10:11:41 2021 +0200 RAT-207: Properly report thread safety to Maven --- apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java | 2 +- apache-rat-plugin/src/main/java/org/apache/rat/mp/RatReportMojo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 @@ import java.nio.charset.StandardCharsets; /** * 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 b3b129a..04da245 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 @@ import java.util.ResourceBundle; * 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
