diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-10-28 14:46:05 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-10-28 15:46:49 +0200 |
commit | d5018fc4435e8f755daeb5791022d28cdcd3d15e (patch) | |
tree | b3b8a2b3fab7f769b7fc8cb4a796c7afa237ea7c | |
parent | d4b1bfd3608757d162624682a18bae0710d65092 (diff) | |
download | sonarqube-d5018fc4435e8f755daeb5791022d28cdcd3d15e.tar.gz sonarqube-d5018fc4435e8f755daeb5791022d28cdcd3d15e.zip |
SONAR-2584 add support for Java7 in PMD
-rw-r--r-- | plugins/sonar-pmd-plugin/pom.xml | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/plugins/sonar-pmd-plugin/pom.xml b/plugins/sonar-pmd-plugin/pom.xml index 6cf586c6b43..372cd6caff0 100644 --- a/plugins/sonar-pmd-plugin/pom.xml +++ b/plugins/sonar-pmd-plugin/pom.xml @@ -14,9 +14,24 @@ <description>PMD is a tool that looks for potential problems like possible bugs, dead code, suboptimal code, overcomplicated expressions or duplicate code.</description> <properties> - <pmd.version>4.2.5</pmd.version> + <pmd.version>4.2.5.1</pmd.version> </properties> + <repositories> + <!-- for patched version of PMD (support of Java7) --> + <repository> + <id>sonar</id> + <name>Sonar</name> + <url>http://repository.sonarsource.org/content/repositories/sonar</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + <dependencies> <dependency> <groupId>org.codehaus.sonar</groupId> @@ -29,8 +44,8 @@ <scope>provided</scope> </dependency> <dependency> - <groupId>pmd</groupId> - <artifactId>pmd</artifactId> + <groupId>com.sonarsource.pmd</groupId> + <artifactId>pmd-java7</artifactId> <version>${pmd.version}</version> <exclusions> <exclusion> @@ -91,6 +106,19 @@ <pluginClass>org.sonar.plugins.pmd.PmdPlugin</pluginClass> </configuration> </plugin> + <plugin> + <!-- TODO remove (see SONAR-2938) --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <executions> + <execution> + <id>enforce-no-repositories</id> + <configuration> + <skip>true</skip> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> |