Commit 0e97c7794a62502d90fb3411877a86bd942d962d
1 parent
5397d9c9
fix(build): 添加 ByteBuddy 实验模式适配 Java 25 REQ-USR-004
Showing
1 changed file
with
13 additions
and
0 deletions
backend/pom.xml
| @@ -120,6 +120,19 @@ | @@ -120,6 +120,19 @@ | ||
| 120 | <build> | 120 | <build> |
| 121 | <plugins> | 121 | <plugins> |
| 122 | <plugin> | 122 | <plugin> |
| 123 | + <groupId>org.apache.maven.plugins</groupId> | ||
| 124 | + <artifactId>maven-surefire-plugin</artifactId> | ||
| 125 | + <configuration> | ||
| 126 | + <argLine> | ||
| 127 | + -XX:+EnableDynamicAgentLoading | ||
| 128 | + -Dnet.bytebuddy.experimental=true | ||
| 129 | + --add-opens java.base/java.lang=ALL-UNNAMED | ||
| 130 | + --add-opens java.base/java.lang.invoke=ALL-UNNAMED | ||
| 131 | + --add-opens java.base/java.util=ALL-UNNAMED | ||
| 132 | + </argLine> | ||
| 133 | + </configuration> | ||
| 134 | + </plugin> | ||
| 135 | + <plugin> | ||
| 123 | <groupId>org.springframework.boot</groupId> | 136 | <groupId>org.springframework.boot</groupId> |
| 124 | <artifactId>spring-boot-maven-plugin</artifactId> | 137 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 125 | <configuration> | 138 | <configuration> |