Skip to content

Commit

Permalink
Correct PMD configuration. Rulesets are now accessed cdk-build-util o…
Browse files Browse the repository at this point in the history
…n the classpath. They could also be hosted remotely but this way they can be run offline.
  • Loading branch information
johnmay committed Jun 10, 2014
1 parent f7edea1 commit 200c603
Show file tree
Hide file tree
Showing 21 changed files with 73 additions and 996 deletions.
15 changes: 11 additions & 4 deletions base/data/pom.xml
Expand Up @@ -81,19 +81,26 @@
</dependency>
</dependencies>

<reporting>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.0.1</version>
<version>3.1</version>
<configuration>
<rulesets>
<ruleset>${project.basedir}/pmd/custom-data.xml</ruleset>
<ruleset>/pmd/custom-data.xml</ruleset>
</rulesets>
</configuration>
<dependencies>
<dependency>
<groupId>org.openscience.cdk</groupId>
<artifactId>cdk-build-utils</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</reporting>
</build>

</project>
15 changes: 11 additions & 4 deletions base/datadebug/pom.xml
Expand Up @@ -82,19 +82,26 @@
</dependency>
</dependencies>

<reporting>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.0.1</version>
<version>3.1</version>
<configuration>
<rulesets>
<ruleset>${project.basedir}/pmd/custom-data.xml</ruleset>
<ruleset>/pmd/custom-data.xml</ruleset>
</rulesets>
</configuration>
<dependencies>
<dependency>
<groupId>org.openscience.cdk</groupId>
<artifactId>cdk-build-utils</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</reporting>
</build>

</project>
15 changes: 11 additions & 4 deletions base/silent/pom.xml
Expand Up @@ -81,19 +81,26 @@
</dependency>
</dependencies>

<reporting>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.0.1</version>
<version>3.1</version>
<configuration>
<rulesets>
<ruleset>${project.basedir}/pmd/custom-data.xml</ruleset>
<ruleset>/pmd/custom-data.xml</ruleset>
</rulesets>
</configuration>
<dependencies>
<dependency>
<groupId>org.openscience.cdk</groupId>
<artifactId>cdk-build-utils</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</reporting>
</build>

</project>
22 changes: 22 additions & 0 deletions misc/qm/pom.xml
Expand Up @@ -71,4 +71,26 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.1</version>
<configuration>
<rulesets>
<ruleset>/pmd/custom-qm.xml</ruleset>
</rulesets>
</configuration>
<dependencies>
<dependency>
<groupId>org.openscience.cdk</groupId>
<artifactId>cdk-build-utils</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>

</project>

0 comments on commit 200c603

Please sign in to comment.