Skip to content

[BUG] Unsupported class file major version 65 #359

@godevox

Description

@godevox

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions