Skip to content

[Bug]: It's failed Using jdk17 to compile. #4027

@leosanqing

Description

@leosanqing

What happened?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.2.4:shade (shade-amoro) on project amoro-optimizer-spark-3.5_2.12: Error creating shaded jar: Problem shading JAR /Users/liurongtong/Desktop/project/gtihub/leo/amoro/amoro-optimizer/amoro-optimizer-spark/target/amoro-optimizer-spark-3.5_2.12-0.9-SNAPSHOT.jar entry org/apache/amoro/optimizer/spark/SparkOptimizer.class: java.lang.IllegalArgumentException: Unsupported class file major version 61 -> [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] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :amoro-optimizer-spark-3.5_2.12

Affects Versions

0.9-snapshot

What table formats are you seeing the problem on?

No response

What engines are you seeing the problem on?

AMS

How to reproduce

Using jdk17 to compile.

Relevant log output

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions