MVN

pmd : pmd

Maven & Gradle

Nov 11, 2011
34 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</artifactId>
    <version>4.3</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

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

  • Latest Stable: 4.3

All Versions

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

Version Vulnerabilities Updated
4.3
pmd-4.3
4.2.x
pmd-4.2.6
pmd-4.2.5
pmd-4.2.4
pmd-4.2.3
pmd-4.2.2
pmd-4.2.1
4.2
pmd-4.2
4.1.x
pmd-4.1.1
4.1
pmd-4.1
3.9
pmd-3.9
3.7
pmd-3.7
3.6
pmd-3.6
3.5
pmd-3.5
3.4
pmd-3.4
3.2
pmd-3.2
3.0
pmd-3.0
2.3
pmd-2.3
2.1
pmd-2.1
1.9
pmd-1.9
1.04
pmd-1.04
1.3
pmd-1.3
1.2.x
pmd-1.2.1
1.1
pmd-1.1

How to add a dependency to Maven

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

<dependency>
    <groupId>pmd</groupId>
    <artifactId>pmd</artifactId>
    <version>4.3</version>
</dependency>

How to add a dependency to Gradle

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

implementation 'pmd:pmd:4.3'

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

implementation("pmd:pmd:4.3")

How to add a dependency to SBT Scala

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

libraryDependencies += "pmd" % "pmd" % "4.3"

Advertisement

Dependencies from Group

pmd
Nov 11, 2011
34 usages
Feb 09, 2009
3 usages

Discover Dependencies

Jan 29, 2021
2 usages
0 stars
Jul 06, 2017
6 usages
10 stars
Jun 27, 2023
3 usages
0 stars
Jun 27, 2023
3 usages
0 stars
Aug 18, 2023
43 usages
6.5k stars
Sep 03, 2015
3 usages
5 stars
Apr 01, 2013
16 usages
86 stars
Sep 18, 2017
5 usages
0 stars
Jun 19, 2006
13 usages