tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject incubator-tamaya git commit: TAMAYA-13 Integrated FindBugs into the build chain. Add -DrunFindbugs to your Maven command to run it.
Date Sun, 30 Nov 2014 15:53:08 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master f8f7aad5f -> 96f77d4c3


TAMAYA-13 Integrated FindBugs into the build chain. Add -DrunFindbugs to your Maven command
to run it.


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

Branch: refs/heads/master
Commit: 96f77d4c363bd5f27ca22033dea86fec1b7cf8b5
Parents: f8f7aad
Author: Oliver B. Fischer <plexus@apache.org>
Authored: Sun Nov 30 16:51:53 2014 +0100
Committer: Oliver B. Fischer <plexus@apache.org>
Committed: Sun Nov 30 16:51:53 2014 +0100

----------------------------------------------------------------------
 .gitignore                                      |  1 +
 buildtools/pom.xml                              | 17 ++++++++
 .../src/main/resources/findbugs-exclude.xml     |  4 ++
 pom.xml                                         | 43 ++++++++++++++++++++
 4 files changed, 65 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/96f77d4c/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 81b9200..4c51d28 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,5 +6,6 @@ pom.xml.next
 release.properties
 .idea
 *.iml
+*.log
 *~
 .DS_Store

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/96f77d4c/buildtools/pom.xml
----------------------------------------------------------------------
diff --git a/buildtools/pom.xml b/buildtools/pom.xml
new file mode 100644
index 0000000..4715f87
--- /dev/null
+++ b/buildtools/pom.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.tamaya</groupId>
+        <artifactId>tamaya-all</artifactId>
+        <version>0.1-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>buildtools</artifactId>
+    <name>Apache Tamaya - Build Tools</name>
+
+    
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/96f77d4c/buildtools/src/main/resources/findbugs-exclude.xml
----------------------------------------------------------------------
diff --git a/buildtools/src/main/resources/findbugs-exclude.xml b/buildtools/src/main/resources/findbugs-exclude.xml
new file mode 100644
index 0000000..5fd588b
--- /dev/null
+++ b/buildtools/src/main/resources/findbugs-exclude.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<FindBugsFilter>
+
+</FindBugsFilter>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/96f77d4c/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 15f4f6f..ba26380 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,6 +40,7 @@ under the License.
 
 	
 	<properties>
+        <findbugs.skip>true</findbugs.skip>
 		<jdkVersion>1.8</jdkVersion>
 		<maven.compile.targetLevel>${jdkVersion}</maven.compile.targetLevel>
 		<maven.compile.sourceLevel>${jdkVersion}</maven.compile.sourceLevel>
@@ -49,7 +50,9 @@ under the License.
 		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 		<junit.version>4.8.2</junit.version>
 
+        <!-- Dependency and plugin relate version properties go here -->
         <asciidoctor.version>1.5.0</asciidoctor.version>
+        <findbugs.version>3.0.0</findbugs.version>
 	</properties>
 
     <licenses>
@@ -140,6 +143,27 @@ under the License.
         <pluginManagement>
             <plugins>
                 <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>findbugs-maven-plugin</artifactId>
+                    <version>${findbugs.version}</version>
+
+                    <executions>
+                        <execution>
+                            <id>findbugs-analyze</id>
+                            <phase>compile</phase>
+                            <goals>
+                                <goal>check</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <effort>Max</effort>
+                        <threshold>Low</threshold>
+                        <failOnError>true</failOnError>
+                    </configuration>
+
+                </plugin>
+                <plugin>
                     <groupId>org.asciidoctor</groupId>
                     <artifactId>asciidoctor-maven-plugin</artifactId>
                     <version>${asciidoctor.version}</version>
@@ -246,6 +270,10 @@ under the License.
 		</pluginManagement>
         <plugins>
             <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>findbugs-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-javadoc-plugin</artifactId>
                 <version>2.9.1</version>
@@ -324,6 +352,20 @@ under the License.
                 <module>docs</module>
             </modules>
         </profile>
+
+        <profile>
+            <id>runFindbugs</id>
+            <activation>
+                <property>
+                    <name>runFindbugs</name>
+                </property>
+            </activation>
+
+            <properties>
+                <findbugs.skip>false</findbugs.skip>
+            </properties>
+
+        </profile>
     </profiles>
     <reporting>
         <plugins>
@@ -411,6 +453,7 @@ under the License.
     </repositories>
 
     <modules>
+        <module>buildtools</module>
         <module>api</module>
         <module>core</module>
         <module>modules</module>


Mime
View raw message