Package Details: pmd 6.17.0-1

Git Clone URL: https://aur.archlinux.org/pmd.git (read-only)
Package Base: pmd
Description: An extensible cross-language static code analyzer.
Upstream URL: https://pmd.github.io/
Licenses: BSD, Apache
Conflicts: pmd-bin
Replaces: pmd-bin
Submitter: None
Maintainer: simon04
Last Packager: simon04
Votes: 9
Popularity: 0.012415
First Submitted: 2011-08-06 11:45
Last Updated: 2019-07-30 05:55

Latest Comments

simon04 commented on 2018-09-03 09:22

@languitar: Building pmd now requires at least JDK 9. Since jdk10-openjdk is the only one provided by Arch Linux packages, I set JAVA_HOME to that one statically (to avoid using jdk8-openjdk if that is installed as well). Which JDK do you have installed?

languitar commented on 2018-09-03 08:07

For me the build fails now:

==> Making package: pmd 6.6.0-1 (Mo 03 Sep 2018 10:04:23 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found pmd-src-6.6.0.zip
  -> Found pmdapp
==> Validating source files with sha256sums...
    pmd-src-6.6.0.zip ... Passed
    pmdapp ... Passed
==> Extracting sources...
  -> Extracting pmd-src-6.6.0.zip with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Error: JAVA_HOME is not defined correctly.
  We cannot execute /usr/lib/jvm/java-10-openjdk//bin/java
==> ERROR: A failure occurred in build().
    Aborting...
2018-09-03 10:04:23,627 - wrappers - makepkg - ERROR - makepkg query ['makepkg', '-cf', '--noconfirm'] failed in directory /home/languitar/.cache/aurman/pmd

BjarnoBe commented on 2018-07-29 12:08

This package has been flagged out-of-date since March. The latest version is 6.6.0.

An updated version of the PKGBUILD can be found here: https://pastebin.com/raw/kTfhihL3

Only tested compilation with Oracle Java 9 JDK (jdk9 on AUR). Adding pyropeter's proposal to add 'java-environment>=9' as a dependency is something that should still be added.

simonescalabrino commented on 2018-06-18 08:08

The build fails also with java-9-openjdk. It only succeeds with java-10-jdk, at least in my case. I don't know if it is a matter of JDK (OpenJDK vs Oracle) or version (9 vs 10), but I guess the latter is more likely.

pyropeter commented on 2018-04-03 15:43

[...] [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message: Detected JDK Version: 1.8.0-144 is not in the allowed range [9,). [...] [INFO] BUILD FAILURE [...] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) on project pmd: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1] [...]

Maybe a dependency on 'java-environment>=9' is needed instead? Also, the dependency on 'java-environment-common' is unneeded and should be removed.

transience commented on 2016-02-16 07:26

PKGBUILD and run.patch for PMD 5.4.1:
http://pastebin.com/raw/R2gvfmHk
http://pastebin.com/raw/5vbVZ1th