From df85978aae6520e29865016ccc906bdb68308660 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 16 Apr 2011 02:08:24 +0200 Subject: [PATCH] Make running static checks configurable in maven build In order to run the static checks run: mvn -P static-checks clean install Change-Id: I14077498a04be986ded123ddbfc97da8f9bc3130 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 | 47 +++++++--------------------- pom.xml | 40 +++++++++++++++++++++++ 5 files changed, 52 insertions(+), 136 deletions(-) diff --git a/org.eclipse.jgit.console/pom.xml b/org.eclipse.jgit.console/pom.xml index 1fbb024f9..83303c896 100644 --- a/org.eclipse.jgit.console/pom.xml +++ b/org.eclipse.jgit.console/pom.xml @@ -107,39 +107,6 @@ 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 5117f0f7a..dbbe1774b 100644 --- a/org.eclipse.jgit.http.server/pom.xml +++ b/org.eclipse.jgit.http.server/pom.xml @@ -124,39 +124,6 @@ - - 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 7460b17f5..daed46d97 100644 --- a/org.eclipse.jgit.ui/pom.xml +++ b/org.eclipse.jgit.ui/pom.xml @@ -98,39 +98,6 @@ - - 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 ea05ed0e2..ae9e77a4a 100644 --- a/org.eclipse.jgit/pom.xml +++ b/org.eclipse.jgit/pom.xml @@ -141,42 +141,17 @@ - - - org.codehaus.mojo - findbugs-maven-plugin - - true - false - findBugs/FindBugsExcludeFilter.xml - - - - - check - - - - - - - org.apache.maven.plugins - maven-pmd-plugin - - utf-8 - 100 - 1.5 - xml - false - - - - - cpd-check - - - - + + + + org.codehaus.mojo + findbugs-maven-plugin + + findBugs/FindBugsExcludeFilter.xml + + + + diff --git a/pom.xml b/pom.xml index d77cd9b21..2431fbfef 100644 --- a/pom.xml +++ b/pom.xml @@ -226,12 +226,37 @@ org.codehaus.mojo findbugs-maven-plugin 2.3.2-SNAPSHOT + + true + false + + + + + check + + + org.apache.maven.plugins maven-pmd-plugin 2.5 + + utf-8 + 100 + 1.5 + xml + false + + + + + cpd-check + + + @@ -361,6 +386,21 @@ org.eclipse.jgit.console + + static-checks + + + + org.codehaus.mojo + findbugs-maven-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + +