-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed
Labels
type: bugA general bugA general bug
Milestone
Description
Steps to reproduce:
- Go to https://start.spring.io/
- Generate project with Maven and Java 21 (don't change anything else)
- Download, unzip
- Change
<java.version>21</java.version>to<java.version>22</java.version> - Execute
mvn clean verify
Results with:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.2.3:repackage (repackage) on project demo: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:3.2.3:repackage failed: Unsupported class file major version 66 -> [Help 1]
This is because spring-boot-maven-plugin:3.2.3 uses old ASM version 9.5. Easily to see using mvn dependency:resolve-plugins:
...
[INFO] org.ow2.asm:asm:jar:9.5
[INFO] org.ow2.asm:asm-commons:jar:9.5
[INFO] org.ow2.asm:asm-tree:jar:9.5
...
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug