I'm using Maven Shade Plugin to build my executable. Shade 3.6.1 supposedly added support for Java 25, but I'm using 3.6.1:

<build> <!-- ... --> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.6.1</version> <configuration> <minimizeJar>true</minimizeJar> <!-- ... --> </configuration> <executions> <execution> <goals> <goal>shade</goal> </goals> <!-- ... --> </execution> </executions> </plugin> </plugins> </build>

yet I still get:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.6.1:shade (default) on project project: Error creating shaded jar: Unsupported class file major version 69 -> [Help 1]

after updating.

Coarse Rosinflower's user avatar

4

I opened a bug report on the Maven Shade Plugin repo, and it was closed as a duplicate with #747 linked.

Add

<dependencies> <dependency> <groupId>org.vafer</groupId> <artifactId>jdependency</artifactId> <version>2.14</version> </dependency> </dependencies>

below the plugin version for Shade.

Coarse Rosinflower's user avatar

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.