alibaba / alibaba/p3c

p3c-pmd plugin not support jdk 21

Open
#1,002 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
30.8k
Forks
8k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
My application is running on jdk 21, When I run use p3c-pmd and run "mvn pmd:pmd", I got this error:
Execution default-cli of goal org.apache.maven.plugins:maven-pmd-plugin:3.24.0:pmd failed: A required class was missing while executing org.apache.maven.plugins:maven-pmd-plugin:3.24.0:pmd: net/sourceforge/pmd/lang/BaseLanguageModule.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported failure with JDK 21 and `mvn pmd:pmd` using p3c-pmd and Maven PMD plugin 3.24.0. Trace the missing `net/sourceforge/pmd/lang/BaseLanguageModule` dependency or compatibility boundary. Done means the command completes successfully on JDK 21 without the reported class-loading error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.