Skip to content

Which version of depclean works with JDK 11?Β #470

@debraj-work

Description

@debraj-work

I am trying depclean 2.0.5 with Java 11 based project as mentioned here

mvn compile
mvn se.kth.castor:depclean-maven-plugin:2.0.5:depclean

Java version

debraj@Nexlas-MacBook-Pro backend-connectors % java -version
openjdk version "11.0.26" 2025-01-21 LTS
OpenJDK Runtime Environment Zulu11.78+15-CA (build 11.0.26+4-LTS)
OpenJDK 64-Bit Server VM Zulu11.78+15-CA (build 11.0.26+4-LTS, mixed mode)

But I am getting below error

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal se.kth.castor:depclean-maven-plugin:2.0.5:depclean (default-cli) on project parser-properties: Execution default-cli of goal se.kth.castor:depclean-maven-plugin:2.0.5:depclean failed: Unsupported class file major version 65 -> [Help 1]                                                                                                                                                        
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 

I tried older version also like 1.1.x there also I was getting the error.

Can somone suggest how to get around this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions