You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by aa...@apache.org on 2022/06/19 09:43:08 UTC
[rocketmq-clients] branch master updated: Java: apply spotbugs
This is an automated email from the ASF dual-hosted git repository.
aaronai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
The following commit(s) were added to refs/heads/master by this push:
new e7dd7f4 Java: apply spotbugs
e7dd7f4 is described below
commit e7dd7f46ce27e4fe392253c0bede672785af89b6
Author: Aaron Ai <ya...@gmail.com>
AuthorDate: Sun Jun 19 17:43:01 2022 +0800
Java: apply spotbugs
---
java/client-apis/pom.xml | 1 +
java/client-shade/pom.xml | 1 +
java/client/pom.xml | 1 +
java/pom.xml | 25 +++++++++++++++++++++++++
4 files changed, 28 insertions(+)
diff --git a/java/client-apis/pom.xml b/java/client-apis/pom.xml
index a61340e..8385c4d 100644
--- a/java/client-apis/pom.xml
+++ b/java/client-apis/pom.xml
@@ -13,6 +13,7 @@
<properties>
<maven.compiler.release>8</maven.compiler.release>
+ <project.root>${basedir}/..</project.root>
</properties>
<dependencies>
diff --git a/java/client-shade/pom.xml b/java/client-shade/pom.xml
index a5be176..fdfdb72 100644
--- a/java/client-shade/pom.xml
+++ b/java/client-shade/pom.xml
@@ -13,6 +13,7 @@
<properties>
<maven.compiler.release>8</maven.compiler.release>
+ <project.root>${basedir}/..</project.root>
</properties>
</project>
\ No newline at end of file
diff --git a/java/client/pom.xml b/java/client/pom.xml
index baf0581..c488844 100644
--- a/java/client/pom.xml
+++ b/java/client/pom.xml
@@ -13,6 +13,7 @@
<properties>
<maven.compiler.release>8</maven.compiler.release>
+ <project.root>${basedir}/..</project.root>
</properties>
<dependencies>
diff --git a/java/pom.xml b/java/pom.xml
index 1b221d8..2b95ad0 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -20,6 +20,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ <project.root>${basedir}</project.root>
<rocketmq.sdk.wrapper.version>None</rocketmq.sdk.wrapper.version>
<!--
@@ -45,6 +46,7 @@
<!-- plugin -->
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
+ <spotbugs-plugin.version>4.2.2</spotbugs-plugin.version>
<maven-checkstyle-plugin.version>3.1.1</maven-checkstyle-plugin.version>
<maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version>
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
@@ -228,6 +230,29 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
</plugin>
+ <plugin>
+ <groupId>com.github.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <version>${spotbugs-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>check</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <failOnError>true</failOnError>
+ <fork>false</fork>
+ <spotbugsXmlOutput>true</spotbugsXmlOutput>
+ <excludeFilterFile>${project.root}/style/spotbugs-suppressions.xml
+ </excludeFilterFile>
+ <threshold>Low</threshold>
+ <effort>Max</effort>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>