You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/08/24 19:45:37 UTC
[16/41] incubator-joshua git commit: JOSHUA-301 - Add findbugs plugin.
JOSHUA-301 - Add findbugs plugin.
Currently this can be run with 'mvn findbugs:check'. There are a ton of warnings, however,
which currently fail the build. Perhaps once fixed this auto-build failure can be added
in, but at present there are too many warnings to fix immediately.
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/d235f9b0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/d235f9b0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/d235f9b0
Branch: refs/heads/JOSHUA-304
Commit: d235f9b09ec41698c6d9784dcc05926ee55a03a1
Parents: 19fe756
Author: Max Thomas <ma...@maxthomas.io>
Authored: Wed Aug 17 10:13:37 2016 -0500
Committer: Max Thomas <ma...@maxthomas.io>
Committed: Wed Aug 17 17:12:24 2016 -0500
----------------------------------------------------------------------
pom.xml | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/d235f9b0/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 05af17a..36a14f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -37,7 +37,9 @@
<properties>
<slf4j.version>1.7.21</slf4j.version>
+ <findbugs.version>3.0.4</findbugs.version>
</properties>
+
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
@@ -120,6 +122,24 @@
<testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
<testSourceDirectory>${basedir}/src/test/java</testSourceDirectory>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>${findbugs.version}</version>
+ <configuration>
+ <xmlOutput>true</xmlOutput>
+ <effort>Max</effort>
+ <failOnError>true</failOnError>
+ <includeTests>true</includeTests>
+ <maxRank>16</maxRank>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
@@ -169,6 +189,11 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>${findbugs.version}</version>
+ </plugin>
</plugins>
</build>
<dependencies>