Package Details: pmd 7.8.0-2

Git Clone URL: https://aur.archlinux.org/pmd.git (read-only, click to copy)
Package Base: pmd
Description: Extensible cross-language static code analyzer
Upstream URL: https://github.com/pmd/pmd
Licenses: BSD, Apache
Submitter: None
Maintainer: daniel7
Last Packager: daniel7
Votes: 11
Popularity: 0.50
First Submitted: 2011-08-06 11:45 (UTC)
Last Updated: 2024-12-10 11:28 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

daniel7 commented on 2024-10-20 15:56 (UTC)

@sainnhe: Thanks for noticing that. Just updated the package.

sainnhe commented on 2024-10-20 09:53 (UTC)

Line 28 ./mvnw clean package will use single thread to compile source, which is too slow. Could you change it to ./mvnw clean package -T 1C so that mvn will use multiple threads to compile, and -T 1C specifies that the thread number is the same as logic cores.

Spixmaster commented on 2024-09-10 18:25 (UTC)

You can follow the RSS feed for new tags, https://github.com/pmd/pmd/tags.atom.

daniel7 commented on 2024-09-10 17:16 (UTC)

Just updated to the latest version 7.5.0. Sorry that I missed that it's been outdated for quite a while and only noticed two weeks ago when it was marked outdated.

I removed the pmdapp script and replaced it with a symlink to pmd.

Spixmaster commented on 2023-07-30 02:53 (UTC)

The hash verification of pmdapp fails.

simon04 commented on 2018-09-03 09:22 (UTC)

@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 (UTC)

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 (UTC) (edited on 2018-07-29 12:11 (UTC) by BjarnoBe)

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 (UTC)

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 (UTC)

[...] [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.