|
29 | 29 |
|
30 | 30 | <properties> |
31 | 31 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
32 | | - <findbugs-maven-plugin.version>3.0.5</findbugs-maven-plugin.version> |
33 | | - <findbugs-maven-plugin.failOnError>true</findbugs-maven-plugin.failOnError> |
| 32 | + <spotbugs-maven-plugin.version>3.1.11</spotbugs-maven-plugin.version> |
| 33 | + <spotbugs.version>3.1.12</spotbugs.version> |
| 34 | + <spotbugs-maven-plugin.failOnError>true</spotbugs-maven-plugin.failOnError> |
34 | 35 | </properties> |
35 | 36 |
|
36 | 37 | <build> |
|
76 | 77 | </executions> |
77 | 78 | </plugin> |
78 | 79 | <plugin> |
79 | | - <groupId>org.codehaus.mojo</groupId> |
80 | | - <artifactId>findbugs-maven-plugin</artifactId> |
81 | | - <version>${findbugs-maven-plugin.version}</version> |
| 80 | + <groupId>com.github.spotbugs</groupId> |
| 81 | + <artifactId>spotbugs-maven-plugin</artifactId> |
| 82 | + <version>${spotbugs-maven-plugin.version}</version> |
82 | 83 | <configuration> |
83 | 84 | <xmlOutput>true</xmlOutput> |
84 | | - <failOnError>${findbugs-maven-plugin.failOnError}</failOnError> |
| 85 | + <failOnError>${spotbugs-maven-plugin.failOnError}</failOnError> |
85 | 86 | </configuration> |
86 | 87 | <executions> |
87 | 88 | <execution> |
88 | | - <id>run-findbugs</id> |
| 89 | + <id>run-spotbugs</id> |
89 | 90 | <phase>verify</phase> |
90 | 91 | <goals> |
91 | 92 | <goal>check</goal> |
92 | 93 | </goals> |
93 | 94 | </execution> |
94 | 95 | </executions> |
| 96 | + <dependencies> |
| 97 | + <!-- overwrite dependency on spotbugs if you want to specify the version of spotbugs --> |
| 98 | + <dependency> |
| 99 | + <groupId>com.github.spotbugs</groupId> |
| 100 | + <artifactId>spotbugs</artifactId> |
| 101 | + <version>${spotbugs.version}</version> |
| 102 | + </dependency> |
| 103 | + </dependencies> |
95 | 104 | </plugin> |
96 | 105 | <!-- Do not use gmaven plugin --> |
97 | 106 | <plugin> |
|
183 | 192 | <scope>test</scope> |
184 | 193 | </dependency> |
185 | 194 | <dependency> |
186 | | - <groupId>com.google.code.findbugs</groupId> |
187 | | - <artifactId>annotations</artifactId> |
188 | | - <version>3.0.1</version> |
189 | | - <scope>provided</scope> |
| 195 | + <groupId>com.github.spotbugs</groupId> |
| 196 | + <artifactId>spotbugs-annotations</artifactId> |
| 197 | + <version>${spotbugs.version}</version> |
| 198 | + <optional>true</optional> |
190 | 199 | </dependency> |
191 | 200 | </dependencies> |
192 | 201 | <repositories> |
|
0 commit comments