PMD, Checkstyle and Clover configurations
This commit is contained in:
@ -10,6 +10,10 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -63,25 +67,6 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>${basedir}/../pmd/licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-site-plugin</artifactId>
|
<artifactId>maven-site-plugin</artifactId>
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -21,26 +25,6 @@
|
|||||||
</delimiters>
|
</delimiters>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>${basedir}/../pmd/licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<testResources>
|
<testResources>
|
||||||
<testResource>
|
<testResource>
|
||||||
@ -80,25 +84,6 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>${basedir}/../pmd/licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>net.sourceforge.pmd</groupId>
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
<artifactId>pmd-build</artifactId>
|
<artifactId>pmd-build</artifactId>
|
||||||
|
@ -10,7 +10,17 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${basedir}/src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
@ -22,25 +32,6 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>${basedir}/../pmd/licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>net.sourceforge.pmd</groupId>
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
<artifactId>pmd-build</artifactId>
|
<artifactId>pmd-build</artifactId>
|
||||||
|
@ -10,7 +10,17 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${basedir}/src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
@ -63,25 +73,6 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>${basedir}/../pmd/licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>net.sourceforge.pmd</groupId>
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
<artifactId>pmd-build</artifactId>
|
<artifactId>pmd-build</artifactId>
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -21,26 +25,6 @@
|
|||||||
</delimiters>
|
</delimiters>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>${basedir}/../pmd/licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -10,7 +10,17 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${basedir}/src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
@ -63,25 +73,6 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>${basedir}/../pmd/licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>net.sourceforge.pmd</groupId>
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
<artifactId>pmd-build</artifactId>
|
<artifactId>pmd-build</artifactId>
|
||||||
|
@ -10,39 +10,10 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<build>
|
<properties>
|
||||||
<plugins>
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
<plugin>
|
</properties>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<useDefaultDelimiters>false</useDefaultDelimiters>
|
|
||||||
<delimiters>
|
|
||||||
<delimiter>${*}</delimiter>
|
|
||||||
</delimiters>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>${basedir}/../pmd/licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sourceforge.pmd</groupId>
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sourceforge.pmd</groupId>
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
|
@ -10,7 +10,17 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${basedir}/src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
@ -63,25 +73,6 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>${basedir}/../pmd/licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>net.sourceforge.pmd</groupId>
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
<artifactId>pmd-build</artifactId>
|
<artifactId>pmd-build</artifactId>
|
||||||
|
@ -10,7 +10,17 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${basedir}/src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
@ -22,25 +32,6 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>${basedir}/../pmd/licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>net.sourceforge.pmd</groupId>
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
<artifactId>pmd-build</artifactId>
|
<artifactId>pmd-build</artifactId>
|
||||||
|
117
pmd/pom.xml
117
pmd/pom.xml
@ -10,35 +10,12 @@
|
|||||||
<version>5.1.4-SNAPSHOT</version>
|
<version>5.1.4-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<build>
|
<properties>
|
||||||
<testResources>
|
<config.basedir>${basedir}</config.basedir>
|
||||||
<testResource>
|
</properties>
|
||||||
<directory>${basedir}/src/test/resources</directory>
|
|
||||||
</testResource>
|
|
||||||
<testResource>
|
|
||||||
<directory>${basedir}/src/test/java</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/testdata/*.java</include>
|
|
||||||
</includes>
|
|
||||||
</testResource>
|
|
||||||
</testResources>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>${basedir}/src/main/resources</directory>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<useDefaultDelimiters>false</useDefaultDelimiters>
|
|
||||||
<delimiters>
|
|
||||||
<delimiter>${*}</delimiter>
|
|
||||||
</delimiters>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
@ -59,22 +36,6 @@
|
|||||||
<goal>run</goal>
|
<goal>run</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
|
||||||
<id>pmd-clean</id>
|
|
||||||
<phase>clean</phase>
|
|
||||||
<configuration>
|
|
||||||
<target>
|
|
||||||
<echo>PMD specific tasks: cleaning generated xdocs</echo>
|
|
||||||
<delete quiet="true">
|
|
||||||
<fileset dir="${src.xdocs.dir}/rules" includes="**/*.xml" />
|
|
||||||
<fileset dir="${src.xdocs.dir}/" includes="mergedruleset.xml" />
|
|
||||||
</delete>
|
|
||||||
</target>
|
|
||||||
</configuration>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
@ -95,26 +56,6 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- As Clover can be quite an hassle, know that you can skip
|
|
||||||
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
|
||||||
site -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<jdk>${java.version}</jdk>
|
|
||||||
<licenseLocation>licences/clover2.license</licenseLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -202,52 +143,4 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>reports</id>
|
|
||||||
<activation>
|
|
||||||
<activeByDefault>true</activeByDefault>
|
|
||||||
</activation>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-pmd-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>verify</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>pmd</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<minimumTokens>100</minimumTokens>
|
|
||||||
<targetJdk>${java.version}</targetJdk>
|
|
||||||
<rulesets>
|
|
||||||
<ruleset>src/main/resources/rulesets/internal/dogfood.xml</ruleset>
|
|
||||||
</rulesets>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>verify</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>checkstyle</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<configLocation>etc/checkstyle-config.xml</configLocation>
|
|
||||||
<suppressionsFile>etc/checkstyle-suppressions.xml</suppressionsFile>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
</project>
|
</project>
|
||||||
|
111
pom.xml
111
pom.xml
@ -262,6 +262,7 @@
|
|||||||
<javacc.version>5.0</javacc.version>
|
<javacc.version>5.0</javacc.version>
|
||||||
<surefire.version>2.17</surefire.version>
|
<surefire.version>2.17</surefire.version>
|
||||||
<checkstyle.version>2.12.1</checkstyle.version>
|
<checkstyle.version>2.12.1</checkstyle.version>
|
||||||
|
<clover.version>2.5.1</clover.version>
|
||||||
<pmd.plugin.version>3.2</pmd.plugin.version>
|
<pmd.plugin.version>3.2</pmd.plugin.version>
|
||||||
<java.version>1.6</java.version>
|
<java.version>1.6</java.version>
|
||||||
|
|
||||||
@ -272,6 +273,11 @@
|
|||||||
one, and complains... -->
|
one, and complains... -->
|
||||||
<src.xdocs.dir>src/site/xdocs</src.xdocs.dir>
|
<src.xdocs.dir>src/site/xdocs</src.xdocs.dir>
|
||||||
<pmd.website.baseurl>http://pmd.sourceforge.net/snapshot/${project.artifactId}</pmd.website.baseurl>
|
<pmd.website.baseurl>http://pmd.sourceforge.net/snapshot/${project.artifactId}</pmd.website.baseurl>
|
||||||
|
|
||||||
|
<config.basedir>${basedir}/pmd</config.basedir>
|
||||||
|
<pmd.dogfood.ruleset>${config.basedir}/src/main/resources/rulesets/internal/dogfood.xml</pmd.dogfood.ruleset>
|
||||||
|
<checkstyle.configLocation>${config.basedir}/etc/checkstyle-config.xml</checkstyle.configLocation>
|
||||||
|
<checkstyle.suppressionsFile>${config.basedir}/etc/checkstyle-suppressions.xml</checkstyle.suppressionsFile>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@ -373,7 +379,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
<groupId>com.atlassian.maven.plugins</groupId>
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
<artifactId>maven-clover2-plugin</artifactId>
|
||||||
<version>2.5.1</version>
|
<version>${clover.version}</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>net.sourceforge.pmd</groupId>
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
@ -429,12 +435,34 @@
|
|||||||
</lifecycleMappingMetadata>
|
</lifecycleMappingMetadata>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- As Clover can be quite an hassle, know that you can skip
|
||||||
|
it by using the following option when running mvn: $ mvn clean -Dmaven.clover.skip=true
|
||||||
|
site -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.atlassian.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-clover2-plugin</artifactId>
|
||||||
|
<version>${clover.version}</version>
|
||||||
|
<inherited>true</inherited>
|
||||||
|
<configuration>
|
||||||
|
<jdk>${java.version}</jdk>
|
||||||
|
<licenseLocation>${config.basedir}/licences/clover2.license</licenseLocation>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>pre-site</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>instrument</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-site-plugin</artifactId>
|
<artifactId>maven-site-plugin</artifactId>
|
||||||
|
<inherited>false</inherited>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>attach-site-descriptor</id>
|
<id>attach-site-descriptor</id>
|
||||||
@ -444,6 +472,29 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<inherited>true</inherited>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>pmd-clean</id>
|
||||||
|
<phase>clean</phase>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<echo>PMD specific tasks: cleaning generated xdocs</echo>
|
||||||
|
<delete quiet="true">
|
||||||
|
<fileset dir="${src.xdocs.dir}/rules" includes="**/*.xml" />
|
||||||
|
<fileset dir="${src.xdocs.dir}/" includes="mergedruleset.xml" />
|
||||||
|
</delete>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -478,7 +529,7 @@
|
|||||||
<minimumTokens>100</minimumTokens>
|
<minimumTokens>100</minimumTokens>
|
||||||
<targetJdk>${java.version}</targetJdk>
|
<targetJdk>${java.version}</targetJdk>
|
||||||
<rulesets>
|
<rulesets>
|
||||||
<ruleset>src/main/resources/rulesets/internal/dogfood.xml</ruleset>
|
<ruleset>${pmd.dogfood.ruleset}</ruleset>
|
||||||
</rulesets>
|
</rulesets>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
@ -495,8 +546,8 @@
|
|||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
<version>${checkstyle.version}</version>
|
<version>${checkstyle.version}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configLocation>etc/checkstyle-config.xml</configLocation>
|
<configLocation>${checkstyle.configLocation}</configLocation>
|
||||||
<suppressionsFile>etc/checkstyle-suppressions.xml</suppressionsFile>
|
<suppressionsFile>${checkstyle.suppressionsFile}</suppressionsFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
<reportSets>
|
<reportSets>
|
||||||
<reportSet>
|
<reportSet>
|
||||||
@ -535,10 +586,10 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.atlassian.maven.plugins</groupId>
|
<groupId>com.atlassian.maven.plugins</groupId>
|
||||||
<artifactId>maven-clover2-plugin</artifactId>
|
<artifactId>maven-clover2-plugin</artifactId>
|
||||||
<version>2.5.1</version>
|
<version>${clover.version}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<licenseLocation>licences/clover2.license</licenseLocation>
|
<licenseLocation>${config.basedir}/licences/clover2.license</licenseLocation>
|
||||||
<reportDescriptor>etc/default-clover-report.xml</reportDescriptor>
|
<reportDescriptor>${config.basedir}/etc/default-clover-report.xml</reportDescriptor>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
@ -735,6 +786,52 @@
|
|||||||
</site>
|
</site>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<profile>
|
||||||
|
<id>reports</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-pmd-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>pmd</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<minimumTokens>100</minimumTokens>
|
||||||
|
<targetJdk>${java.version}</targetJdk>
|
||||||
|
<rulesets>
|
||||||
|
<ruleset>${pmd.dogfood.ruleset}</ruleset>
|
||||||
|
</rulesets>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>checkstyle</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<configLocation>${checkstyle.configLocation}</configLocation>
|
||||||
|
<suppressionsFile>${checkstyle.suppressionsFile}</suppressionsFile>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
Reference in New Issue
Block a user