|
52 | 52 |
|
53 | 53 | <!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 --> |
54 | 54 | <properties> |
| 55 | + <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
55 | 56 | <java.version>21</java.version> |
56 | 57 | <maven.compiler.release>${java.version}</maven.compiler.release> |
57 | | - <maven.compiler.source>${java.version}</maven.compiler.source> |
58 | | - <maven.compiler.target>${java.version}</maven.compiler.target> |
59 | | - <maven.version>3.0</maven.version> |
| 58 | + <maven.version>4.0.0-rc-5</maven.version> |
60 | 59 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
61 | 60 | <!-- Dependency versions --> |
62 | 61 | <commons-exec.version>1.6.0</commons-exec.version> |
|
204 | 203 | <artifactId>maven-compiler-plugin</artifactId> |
205 | 204 | <version>${maven-compiler-plugin.version}</version> |
206 | 205 | <configuration> |
207 | | - <!-- 源代码编译版本 --> |
208 | | - <source>${java.version}</source> |
209 | | - <!-- 目标平台编译版本 --> |
210 | | - <target>${java.version}</target> |
211 | 206 | <!-- 字符集编码 --> |
212 | 207 | <encoding>${project.build.sourceEncoding}</encoding> |
213 | 208 | <!-- 编译最大内存 --> |
|
246 | 241 | <configuration> |
247 | 242 | <rules> |
248 | 243 | <requireMavenVersion> |
249 | | - <message>You are running an older version of Maven. This application requires at least Maven ${maven.version}.</message> |
250 | | - <version>[${maven.version}.0,)</version> |
| 244 | + <message><![CDATA[You are running an older version of Maven. This application requires at least Maven 4.]]></message> |
| 245 | + <version>[4.0.0,)</version> |
251 | 246 | </requireMavenVersion> |
252 | 247 | <requireJavaVersion> |
253 | 248 | <message>You are running an older version of Java. This application requires at least JDK ${java.version}.</message> |
|
460 | 455 | <artifactId>maven-compiler-plugin</artifactId> |
461 | 456 | <version>${maven-compiler-plugin.version}</version> |
462 | 457 | <configuration> |
463 | | - <source>${java.version}</source> |
464 | | - <target>${java.version}</target> |
465 | 458 | <!-- 保留方法参数名,支持 Spring MVC 按参数名绑定 --> |
466 | 459 | <parameters>true</parameters> |
467 | 460 | <encoding>${project.build.sourceEncoding}</encoding> |
|
0 commit comments