MVN

pmd : pmd-jdk14

Maven & Gradle

Feb 09, 2009
3 usages

PMD · <p>PMD scans Java source code and looks for potential problems like:</p> <ul> <li>Possible bugs - empty try/catch/finally/switch statements</li> <li>Dead code - unused local variables, parameters and private methods</li> <li>Suboptimal code - wasteful String/StringBuffer usage</li> <li>Overcomplicated expressions - unnecessary if statements, for loops that could be while loops</li> <li>Duplicate code - copied/pasted code means copied/pasted bugs</li> </ul> <p>You can <b><a href="http://sourceforge.net/project/showfiles.php?group_id=56262">download everything from here</a></b>, and you can get an overview of all the rules at the <a href="rules/index.html">rulesets index</a> page.</p> <p>PMD is <a href="integrations.html">integrated</a> with JDeveloper, Eclipse, JEdit, JBuilder, BlueJ, CodeGuide, NetBeans/Sun Java Studio Enterprise/Creator, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, and Emacs.</p>

<dependency>
    <groupId>pmd</groupId>
    <artifactId>pmd-jdk14</artifactId>
    <version>4.2.5</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of pmd : pmd-jdk14 to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 4.2.5

All Versions

Choose a version of pmd : pmd-jdk14 to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
4.2.x
pmd-jdk14-4.2.5
pmd-jdk14-4.2.4
pmd-jdk14-4.2.3
pmd-jdk14-4.2.2
pmd-jdk14-4.2.1
4.2
pmd-jdk14-4.2
4.1.x
pmd-jdk14-4.1.1
4.1
pmd-jdk14-4.1

How to add a dependency to Maven

Add the following pmd : pmd-jdk14 maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>pmd</groupId>
    <artifactId>pmd-jdk14</artifactId>
    <version>4.2.5</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following pmd : pmd-jdk14 gradle dependency to your build.gradle file:

implementation 'pmd:pmd-jdk14:4.2.5'

Gradle Kotlin DSL: Add the following pmd : pmd-jdk14 gradle kotlin dependency to your build.gradle.kts file:

implementation("pmd:pmd-jdk14:4.2.5")

How to add a dependency to SBT Scala

SBT Scala: Add the following pmd : pmd-jdk14 sbt scala dependency to your build.sbt file:

libraryDependencies += "pmd" % "pmd-jdk14" % "4.2.5"