You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lens.apache.org by am...@apache.org on 2015/04/15 21:50:11 UTC

[37/50] [abbrv] incubator-lens git commit: LENS-353: Add the findbugs plugin in pom

LENS-353: Add the findbugs plugin in pom


Project: http://git-wip-us.apache.org/repos/asf/incubator-lens/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-lens/commit/c20120c3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-lens/tree/c20120c3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-lens/diff/c20120c3

Branch: refs/heads/current-release-line
Commit: c20120c34f8149c4d5131dfde60143fddd468e89
Parents: 8750e72
Author: Amareshwari Sriramadasu <am...@apache.org>
Authored: Thu Apr 9 14:46:14 2015 +0530
Committer: Rajat Khandelwal <ra...@gmail.com>
Committed: Thu Apr 9 14:46:14 2015 +0530

----------------------------------------------------------------------
 .../src/main/resources/findbugs-exclude.xml     | 17 +++++++++++++
 pom.xml                                         | 26 ++++++++++++++++++++
 2 files changed, 43 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/c20120c3/checkstyle/src/main/resources/findbugs-exclude.xml
----------------------------------------------------------------------
diff --git a/checkstyle/src/main/resources/findbugs-exclude.xml b/checkstyle/src/main/resources/findbugs-exclude.xml
new file mode 100644
index 0000000..f9c9d52
--- /dev/null
+++ b/checkstyle/src/main/resources/findbugs-exclude.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+       http://www.apache.org/licenses/LICENSE-2.0
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ -->
+<FindBugsFilter>
+</FindBugsFilter>

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/c20120c3/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 00bca47..7e42144 100644
--- a/pom.xml
+++ b/pom.xml
@@ -96,6 +96,8 @@
     <war.plugin.version>2.1.1</war.plugin.version>
     <license.plugin.version>2.6</license.plugin.version>
     <buildnumber.plugin.version>1.0</buildnumber.plugin.version>
+    <findbugs.plugin.version>3.0.1</findbugs.plugin.version>
+
     <!-- debian -->
     <mvn.deb.build.dir>${project.build.directory}/debian</mvn.deb.build.dir>
 
@@ -454,6 +456,11 @@
           <artifactId>maven-war-plugin</artifactId>
           <version>${war.plugin.version}</version>
         </plugin>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>findbugs-maven-plugin</artifactId>
+          <version>${findbugs.plugin.version}</version>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
@@ -564,6 +571,25 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>findbugs-maven-plugin</artifactId>
+        <configuration>
+          <xmlOutput>true</xmlOutput>
+          <excludeFilterFile>checkstyle/src/main/resources/findbugs-exclude.xml</excludeFilterFile>
+          <failOnError>false</failOnError>
+          <skip>${skipCheck}</skip>
+        </configuration>
+        <executions>
+          <execution>
+             <id>findbugs-check</id>
+             <goals>
+               <goal>check</goal>
+             </goals>
+             <phase>verify</phase>
+           </execution>
+        </executions>
+      </plugin>
     </plugins>
 
   </build>