From 241ab2273557185c2b76cedca5a133055ab6e39a Mon Sep 17 00:00:00 2001 From: Chris Aniszczyk Date: Thu, 14 Oct 2010 09:26:46 -0700 Subject: [PATCH] Add FindBugs and CPD to the build. We need to use findbugs-maven-plugin:2.3.2-SNAPSHOT since otherwise build fails with maven-3.0 [1], [2]. We should switch to the release version as soon as this becomes available. [1] http://www.sonatype.com/people/2010/10/maven-3-0-has-landed/ [2] http://jira.codehaus.org/browse/MFINDBUGS-122 Bug: 327799 Change-Id: I1c57f81cf6f0450e56411881488c4ee754e458e3 Signed-off-by: Chris Aniszczyk Signed-off-by: Matthias Sohn --- org.eclipse.jgit.console/pom.xml | 35 +++++++++++++++++++++++++++- org.eclipse.jgit.http.server/pom.xml | 33 ++++++++++++++++++++++++++ org.eclipse.jgit.ui/pom.xml | 33 ++++++++++++++++++++++++++ org.eclipse.jgit/pom.xml | 33 ++++++++++++++++++++++++++ pom.xml | 25 ++++++++++++++++++++ 5 files changed, 158 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit.console/pom.xml b/org.eclipse.jgit.console/pom.xml index 6ca1cdc98..dde64c259 100644 --- a/org.eclipse.jgit.console/pom.xml +++ b/org.eclipse.jgit.console/pom.xml @@ -107,6 +107,39 @@ UTF-8 - + + org.codehaus.mojo + findbugs-maven-plugin + + true + false + + + + + check + + + + + + org.apache.maven.plugins + maven-pmd-plugin + + utf-8 + 100 + 1.5 + xml + false + + + + + cpd-check + + + + + diff --git a/org.eclipse.jgit.http.server/pom.xml b/org.eclipse.jgit.http.server/pom.xml index 4b91d9afb..05412cb4d 100644 --- a/org.eclipse.jgit.http.server/pom.xml +++ b/org.eclipse.jgit.http.server/pom.xml @@ -104,6 +104,39 @@ + + org.codehaus.mojo + findbugs-maven-plugin + + true + false + + + + + check + + + + + + org.apache.maven.plugins + maven-pmd-plugin + + utf-8 + 100 + 1.5 + xml + false + + + + + cpd-check + + + + diff --git a/org.eclipse.jgit.ui/pom.xml b/org.eclipse.jgit.ui/pom.xml index 2e7edb855..8d3b0f4d1 100644 --- a/org.eclipse.jgit.ui/pom.xml +++ b/org.eclipse.jgit.ui/pom.xml @@ -98,6 +98,39 @@ + + org.codehaus.mojo + findbugs-maven-plugin + + true + false + + + + + check + + + + + + org.apache.maven.plugins + maven-pmd-plugin + + utf-8 + 100 + 1.5 + xml + false + + + + + cpd-check + + + + diff --git a/org.eclipse.jgit/pom.xml b/org.eclipse.jgit/pom.xml index 42cd70b32..284be8d51 100644 --- a/org.eclipse.jgit/pom.xml +++ b/org.eclipse.jgit/pom.xml @@ -141,6 +141,39 @@ + + org.codehaus.mojo + findbugs-maven-plugin + + true + false + + + + + check + + + + + + org.apache.maven.plugins + maven-pmd-plugin + + utf-8 + 100 + 1.5 + xml + false + + + + + cpd-check + + + + diff --git a/pom.xml b/pom.xml index 00865fa80..a6c76e5b3 100644 --- a/pom.xml +++ b/pom.xml @@ -137,6 +137,16 @@ 7.0.1.v20091125 + + + + codehaus.snapshots + http://snapshots.repository.codehaus.org/ + + + @@ -202,6 +212,21 @@ build-helper-maven-plugin 1.5 + + + + org.codehaus.mojo + findbugs-maven-plugin + 2.3.2-SNAPSHOT + + + + org.apache.maven.plugins + maven-pmd-plugin + 2.5 +