OSDN Git Service

findbugs to spotbugs
authorOlyutorskii <olyutorskii@users.osdn.me>
Sat, 4 May 2019 11:56:05 +0000 (20:56 +0900)
committerOlyutorskii <olyutorskii@users.osdn.me>
Sat, 4 May 2019 11:56:05 +0000 (20:56 +0900)
pom.xml

diff --git a/pom.xml b/pom.xml
index 8e9749a..438bbe6 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -90,7 +90,7 @@
         <locale>en</locale>
         <site.locales>${locale}</site.locales>
         <javadoc.locale>${locale}</javadoc.locale>
         <locale>en</locale>
         <site.locales>${locale}</site.locales>
         <javadoc.locale>${locale}</javadoc.locale>
-        <findbugs.jvmArgs>-Duser.language=en</findbugs.jvmArgs>
+        <spotbugs.jvmArgs>-Duser.language=${locale}</spotbugs.jvmArgs>
 
         <!-- Walk around: JDK 11 javadoc + Maven -->
         <detectJavaApiLink>false</detectJavaApiLink>
 
         <!-- Walk around: JDK 11 javadoc + Maven -->
         <detectJavaApiLink>false</detectJavaApiLink>
 
         <pmd-plugin.version>3.7</pmd-plugin.version>
 
 
         <pmd-plugin.version>3.7</pmd-plugin.version>
 
-        <findbugs-plugin.version>3.0.4</findbugs-plugin.version>
-        <findbugs.effort>Max</findbugs.effort>
-        <findbugs.threshold>Low</findbugs.threshold>
+        <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
+        <spotbugs.effort>Max</spotbugs.effort>
+        <spotbugs.threshold>Low</spotbugs.threshold>
         <!-- for Jenkins -->
         <!-- for Jenkins -->
-        <findbugs.xmlOutput>true</findbugs.xmlOutput>
+        <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
 
     </properties>
 
 
     </properties>
 
                 <version>${checkstyle-plugin.version}</version>
             </plugin>
 
                 <version>${checkstyle-plugin.version}</version>
             </plugin>
 
+            <plugin>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
+                <version>${spotbugs-plugin.version}</version>
+            </plugin>
+
         </plugins>
 
         <resources>
         </plugins>
 
         <resources>
             </plugin>
 
             <plugin>
             </plugin>
 
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>findbugs-maven-plugin</artifactId>
-                <version>${findbugs-plugin.version}</version>
+                <groupId>com.github.spotbugs</groupId>
+                <artifactId>spotbugs-maven-plugin</artifactId>
+                <version>${spotbugs-plugin.version}</version>
             </plugin>
 
         </plugins>
             </plugin>
 
         </plugins>