diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2011-04-16 02:08:24 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2011-04-18 17:38:58 +0200 |
commit | df85978aae6520e29865016ccc906bdb68308660 (patch) | |
tree | 30644fa0888f4f3a6635f910a7440efa20e713ad /pom.xml | |
parent | b69284f72d717f50981c822edbff1dc3313cdd58 (diff) | |
download | jgit-df85978aae6520e29865016ccc906bdb68308660.tar.gz jgit-df85978aae6520e29865016ccc906bdb68308660.zip |
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 <matthias.sohn@sap.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -226,12 +226,37 @@ <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>2.3.2-SNAPSHOT</version> + <configuration> + <findbugsXmlOutput>true</findbugsXmlOutput> + <failOnError>false</failOnError> + </configuration> + <executions> + <execution> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <version>2.5</version> + <configuration> + <sourceEncoding>utf-8</sourceEncoding> + <minimumTokens>100</minimumTokens> + <targetJdk>1.5</targetJdk> + <format>xml</format> + <failOnViolation>false</failOnViolation> + </configuration> + <executions> + <execution> + <goals> + <goal>cpd-check</goal> + </goals> + </execution> + </executions> </plugin> </plugins> </pluginManagement> @@ -361,6 +386,21 @@ <module>org.eclipse.jgit.console</module> </modules> </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> |