MVN

org.codehaus.sonar-plugins.java : sonar-pmd-plugin

Maven & Gradle

Apr 16, 2015
2 usages
249 stars

SonarQube PMD Plugin · PMD is a tool that looks for potential problems like possible bugs, dead code, suboptimal code, overcomplicated expressions or duplicate code.

<dependency>
    <groupId>org.codehaus.sonar-plugins.java</groupId>
    <artifactId>sonar-pmd-plugin</artifactId>
    <version>2.4</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of org.codehaus.sonar-plugins.java : sonar-pmd-plugin to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 2.4
  • Latest Release Candidate: 2.1-RC1

All Versions

Choose a version of org.codehaus.sonar-plugins.java : sonar-pmd-plugin to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
2.4
sonar-pmd-plugin-2.4
2.3
sonar-pmd-plugin-2.3
2.2
sonar-pmd-plugin-2.2
2.1
sonar-pmd-plugin-2.1
sonar-pmd-plugin-2.1-RC1
2.0
sonar-pmd-plugin-2.0
1.5
sonar-pmd-plugin-1.5
sonar-pmd-plugin-1.5-RC2
sonar-pmd-plugin-1.5-RC1
1.4
sonar-pmd-plugin-1.4
1.3
sonar-pmd-plugin-1.3
sonar-pmd-plugin-1.3-RC1
1.2
sonar-pmd-plugin-1.2
sonar-pmd-plugin-1.2-RC2
sonar-pmd-plugin-1.2-RC1
1.1
sonar-pmd-plugin-1.1
sonar-pmd-plugin-1.1-RC2
sonar-pmd-plugin-1.1-RC1

How to add a dependency to Maven

Add the following org.codehaus.sonar-plugins.java : sonar-pmd-plugin maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>org.codehaus.sonar-plugins.java</groupId>
    <artifactId>sonar-pmd-plugin</artifactId>
    <version>2.4</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following org.codehaus.sonar-plugins.java : sonar-pmd-plugin gradle dependency to your build.gradle file:

implementation 'org.codehaus.sonar-plugins.java:sonar-pmd-plugin:2.4'

Gradle Kotlin DSL: Add the following org.codehaus.sonar-plugins.java : sonar-pmd-plugin gradle kotlin dependency to your build.gradle.kts file:

implementation("org.codehaus.sonar-plugins.java:sonar-pmd-plugin:2.4")

How to add a dependency to SBT Scala

SBT Scala: Add the following org.codehaus.sonar-plugins.java : sonar-pmd-plugin sbt scala dependency to your build.sbt file:

libraryDependencies += "org.codehaus.sonar-plugins.java" % "sonar-pmd-plugin" % "2.4"