diff options
author | Matthias Sohn | 2011-04-15 23:41:18 +0000 |
---|---|---|
committer | Matthias Sohn | 2011-04-18 16:02:38 +0000 |
commit | c10f9ff2553f475c98e8312d90b01c9a3582725f (patch) | |
tree | 20b446deeed4aefaa20704cfb580ec6def479537 | |
parent | 3db1bd588cec74c4108d4c223a4606d1e3b491e0 (diff) | |
download | egit-c10f9ff2553f475c98e8312d90b01c9a3582725f.tar.gz egit-c10f9ff2553f475c98e8312d90b01c9a3582725f.tar.xz egit-c10f9ff2553f475c98e8312d90b01c9a3582725f.zip |
Make running static checks configurable in maven build
In order to run the static checks, e.g. against indigo run:
mvn -P platform-indigo,static-checks clean install
Change-Id: I39e5adbd305a5f393267adf5609e62f9ad254b6f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r-- | org.eclipse.egit.core.test/pom.xml | 8 | ||||
-rw-r--r-- | org.eclipse.egit.core/pom.xml | 8 | ||||
-rw-r--r-- | org.eclipse.egit.mylyn.ui/pom.xml | 8 | ||||
-rw-r--r-- | org.eclipse.egit.ui.test/pom.xml | 8 | ||||
-rw-r--r-- | org.eclipse.egit.ui/pom.xml | 22 | ||||
-rw-r--r-- | pom.xml | 16 |
6 files changed, 27 insertions, 43 deletions
diff --git a/org.eclipse.egit.core.test/pom.xml b/org.eclipse.egit.core.test/pom.xml index d8e8e3141b..16a2067b37 100644 --- a/org.eclipse.egit.core.test/pom.xml +++ b/org.eclipse.egit.core.test/pom.xml @@ -39,14 +39,6 @@ <useUIThread>false</useUIThread> </configuration> </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - </plugin> </plugins> </build> </project> diff --git a/org.eclipse.egit.core/pom.xml b/org.eclipse.egit.core/pom.xml index 2f752afc08..74c19e4984 100644 --- a/org.eclipse.egit.core/pom.xml +++ b/org.eclipse.egit.core/pom.xml @@ -40,14 +40,6 @@ <groupId>org.sonatype.tycho</groupId> <artifactId>maven-osgi-source-plugin</artifactId> </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - </plugin> </plugins> </build> diff --git a/org.eclipse.egit.mylyn.ui/pom.xml b/org.eclipse.egit.mylyn.ui/pom.xml index ff38b3f9a3..2833f5da7a 100644 --- a/org.eclipse.egit.mylyn.ui/pom.xml +++ b/org.eclipse.egit.mylyn.ui/pom.xml @@ -39,14 +39,6 @@ <groupId>org.sonatype.tycho</groupId> <artifactId>maven-osgi-source-plugin</artifactId> </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - </plugin> </plugins> </build> diff --git a/org.eclipse.egit.ui.test/pom.xml b/org.eclipse.egit.ui.test/pom.xml index 5eb7337282..2a06abd78a 100644 --- a/org.eclipse.egit.ui.test/pom.xml +++ b/org.eclipse.egit.ui.test/pom.xml @@ -113,14 +113,6 @@ </configuration> </plugin> <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.7.2</version> diff --git a/org.eclipse.egit.ui/pom.xml b/org.eclipse.egit.ui/pom.xml index dbeb19151b..bd6e30bdd8 100644 --- a/org.eclipse.egit.ui/pom.xml +++ b/org.eclipse.egit.ui/pom.xml @@ -39,17 +39,17 @@ <groupId>org.sonatype.tycho</groupId> <artifactId>maven-osgi-source-plugin</artifactId> </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - <configuration> - <excludeFilterFile>findBugs/FindBugsExcludeFilter.xml</excludeFilterFile> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - </plugin> </plugins> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + <configuration> + <excludeFilterFile>findBugs/FindBugsExcludeFilter.xml</excludeFilterFile> + </configuration> + </plugin> + </plugins> + </pluginManagement> </build> </project> @@ -2,6 +2,7 @@ <!-- Copyright (C) 2009, Igor Fedorenko <igor@ifedorenko.com> Copyright (C) 2010, Chris Aniszczyk <caniszczyk@gmail.com> + Copyright (C) 2011, Matthias Sohn <matthias.sohn@sap.com> All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 @@ -115,6 +116,21 @@ <swtbot-site>http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site</swtbot-site> </properties> </profile> + <profile> + <id>static-checks</id> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pmd-plugin</artifactId> + </plugin> + </plugins> + </build> + </profile> </profiles> <modules> |