|
62 | 62 | <artifactId>maven-compiler-plugin</artifactId> |
63 | 63 | <version>${maven-compiler-plugin.version}</version> |
64 | 64 | <configuration> |
65 | | - <!-- 源代码编译版本 --> |
66 | | - <source>${java.version}</source> |
67 | | - <!-- 目标平台编译版本 --> |
68 | | - <target>${java.version}</target> |
69 | 65 | <release>${java.version}</release> |
70 | 66 | <!-- 字符集编码 --> |
71 | 67 | <encoding>${project.build.sourceEncoding}</encoding> |
|
98 | 94 | <configuration> |
99 | 95 | <rules> |
100 | 96 | <requireMavenVersion> |
101 | | - <message> |
102 | | - You are running an older version of Maven. This application requires at least Maven ${maven.version}. |
103 | | - </message> |
104 | | - <version>[${maven.version}.0,)</version> |
| 97 | + <message><![CDATA[You are running an older version of Maven. This application requires at least Maven 4.]]></message> |
| 98 | + <version>[4.0.0,)</version> |
105 | 99 | </requireMavenVersion> |
106 | 100 | <requireJavaVersion> |
107 | 101 | <message> |
|
330 | 324 | <artifactId>maven-compiler-plugin</artifactId> |
331 | 325 | <version>${maven-compiler-plugin.version}</version> |
332 | 326 | <configuration> |
333 | | - <source>${java.version}</source> |
334 | | - <target>${java.version}</target> |
335 | 327 | <!-- 保留方法参数名,支持 Spring MVC 按参数名绑定 --> |
336 | 328 | <parameters>true</parameters> |
337 | 329 | <encoding>${project.build.sourceEncoding}</encoding> |
|
461 | 453 |
|
462 | 454 | <!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 --> |
463 | 455 | <properties> |
| 456 | + <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
464 | 457 | <java.version>21</java.version> |
465 | 458 | <maven.compiler.release>${java.version}</maven.compiler.release> |
466 | | - <maven.version>3.0</maven.version> |
| 459 | + <maven.version>4.0.0-rc-5</maven.version> |
467 | 460 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
468 | 461 | <!-- Dependency versions --> |
469 | 462 | <commons-exec.version>1.6.0</commons-exec.version> |
|
0 commit comments