Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unsupported class file major version 65 #359

Open
godevox opened this issue Sep 20, 2024 · 3 comments
Open

[BUG] Unsupported class file major version 65 #359

godevox opened this issue Sep 20, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@godevox
Copy link

godevox commented Sep 20, 2024

depclean fails on Spring PetClinic project due to "Unsupported class file major version 65" error

Environment

  • DepClean version: 2.0.5 (also tried with 2.0.X series lower version)
  • Java version: OpenJDK 17.0.12 2024-07-16 LTS
  • Maven version: Apache Maven 3.9.9
  • Operating System: Tested on Windows , Mac, Ubuntu

Steps to Reproduce

  1. Clone the Spring PetClinic project:
    git clone https://github.com/spring-projects/spring-petclinic.git
    cd spring-petclinic
    
  2. Run DepClean on the root of the project:
    mvn se.kth.castor:depclean-maven-plugin:2.0.5:depclean
    
    Note: The issue persists with lower versions as well.

Expected Behavior

depclean should run successfully and analyze the dependencies of the Spring PetClinic project.

Actual Behavior

depclean fails with an error related to "Unsupported class file major version 65".

Error Message

-------------------------------------------------------
[INFO] Starting DepClean dependency analysis
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:32 min
[INFO] Finished at: 2024-09-20T07:09:25+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal se.kth.castor:depclean-maven-plugin:2.0.5:depclean (default-cli) on project spring-petclinic: Execution default-cli of goal se.kth.castor:depclean-maven-plugin:2.0.5:depclean failed: Unsupported class file major version 65 -> [Help 1]
@godevox godevox added the bug Something isn't working label Sep 20, 2024
@godevox godevox changed the title [BUG] [BUG] Unsupported class file major version 65 Sep 20, 2024
@johanhaleby
Copy link

I have the same issue

@lazrekyasser
Copy link

This solution fix the problem in my case #278 (comment)

@goodale
Copy link

goodale commented Nov 12, 2024

I had the same issue and the solution in #278 fixed the problem. if you are using a repo and your current pom inherits from the pom defining the plugin be sure to push your parent pom to remote and then do a mvn -U clean to ensure the pom being analyzed gets the update with the specific asm version that resolves the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants