Notices: This section not yet converted to new layout. Download stats are rolling back out.



Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 4/5/2019.

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, PLSQL, Apache Velocity, XML, XSL. Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code in Java, C, C++, C#, PHP, Ruby, Fortran, JavaScript, PLSQL, Apache Velocity, Ruby, Scala, Objective C, Matlab, Python, Go.

To install PMD, run the following command from the command line or from PowerShell:

C:\> choco install pmd

To upgrade PMD, run the following command from the command line or from PowerShell:

C:\> choco upgrade pmd


  • tools\chocolateyuninstall.ps1 Show
    $id  = "pmd"
    $tools    = Split-Path $MyInvocation.MyCommand.Definition
    $content  = Split-Path $tools
    $pmd_home = Join-Path $content "pmd-bin-6.12.0"
    $pmd_bin  = Join-Path $pmd_home "bin/pmd.bat"
    $cpd_bin  = Join-Path $pmd_home "bin/cpd.bat"
    Uninstall-BinFile -Name "pmd" -Path $pmd_bin
    Uninstall-BinFile -Name "cpd" -Path $cpd_bin
  • tools\chocolateyinstall.ps1 Show
    $tools = Split-Path $MyInvocation.MyCommand.Definition
    $package = Split-Path $tools
    $pmd_home = Join-path $package 'pmd-bin-6.12.0'
    $pmd_bin = Join-Path $pmd_home 'bin/pmd.bat'
    $cpd_bin = Join-Path $pmd_home 'bin/cpd.bat'
    Install-ChocolateyZipPackage `
        -PackageName 'pmd' `
        -Url '' `
        -Checksum 'E61B3855BD94C1A3875B788CFD252A2D4F1232D47A41479078640DA9AA3F7ECB' `
        -ChecksumType 'SHA256'`
        -UnzipLocation $package `
    Install-ChocolateyEnvironmentVariable `
        -VariableName 'PMD_HOME' `
        -VariableValue $pmd_home `
        -VariableType 'Machine'
    Install-BinFile -Name 'pmd' -Path $pmd_bin
    Install-BinFile -Name 'cpd' -Path $cpd_bin

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.


Package Maintainer(s)

Software Author(s)

  • PMD


Release Notes

Version History

Version Downloads Last updated Status
PMD 6.11.0 105 Sunday, February 3, 2019 approved
PMD 6.8.0 282 Monday, October 8, 2018 approved
PMD 6.3.0 524 Friday, May 11, 2018 approved
PMD 5.8.1 368 Tuesday, September 12, 2017 approved
PMD 5.3.2 476 Tuesday, July 7, 2015 approved

Discussion for the PMD Package

Ground rules:

  • This discussion is only about PMD and the PMD package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or PMD, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus uses cookies to enhance the user experience of the site.