From 4d74d77de8227c33f76c29a9a650157367e10472 Mon Sep 17 00:00:00 2001 From: Zexiovo <2482474347@qq.com> Date: Sun, 21 Sep 2025 06:33:25 +0000 Subject: [PATCH] =?UTF-8?q?update=20pom.xml.=20=E4=B8=BB=E8=A6=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=86=85=E5=AE=B9=EF=BC=9A=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BA=86=E7=BC=96=E8=AF=91=E5=99=A8=E6=8F=92=E4=BB=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.将 maven-compiler-plugin 的版本从 3.1 更新到 3.11.0 将源和目标版本从 1.6 更新到 21 添加了编码配置,使用 UTF-8 2.更新了 WAR 插件配置: 将 maven-war-plugin 的版本从 3.0 更新到 3.3.2 修复了版本配置的位置(从 中移动到 标签) 3.添加了属性配置: 添加了 maven.compiler.source 和 maven.compiler.target 属性,设置为 21 添加了 maven.compiler.plugin.version 和 maven.war.plugin.version 属性,便于统一管理插件版本 Signed-off-by: Zexiovo <2482474347@qq.com> --- pom.xml | 146 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 78 insertions(+), 68 deletions(-) diff --git a/pom.xml b/pom.xml index 2b27121..234ffbf 100644 --- a/pom.xml +++ b/pom.xml @@ -6,86 +6,96 @@ war springmvc-maven simple demo about how to use maven combine spring mvc + + + UTF-8 + 3.1.2.RELEASE + 21 + 21 + 3.11.0 + 3.3.2 + + - - + + easy-springmvc-maven + org.apache.maven.plugins maven-compiler-plugin - 3.1 + ${maven.compiler.plugin.version} - 1.6 - 1.6 + ${maven.compiler.source} + ${maven.compiler.target} + ${project.build.sourceEncoding} + + + + org.apache.maven.plugins + maven-war-plugin + ${maven.war.plugin.version} + + + + - - maven-war-plugin - - 3.0 - - - - - + - - junit - junit - 4.12 - test - + + junit + junit + 4.12 + test + - - org.springframework - spring-webmvc - ${spring.version} - - - org.springframework - spring-jdbc - ${spring.version} - - - org.springframework - spring-context - ${spring.version} - - - org.springframework - spring-aop - ${spring.version} - - - org.springframework - spring-core - ${spring.version} - - - org.springframework - spring-test - ${spring.version} - - - - - jstl - jstl - 1.2 - - - taglibs - standard - 1.1.2 - - + + org.springframework + spring-webmvc + ${spring.version} + + + org.springframework + spring-jdbc + ${spring.version} + + + org.springframework + spring-context + ${spring.version} + + + org.springframework + spring-aop + ${spring.version} + + + org.springframework + spring-core + ${spring.version} + + + org.springframework + spring-test + ${spring.version} + + + + + + jstl + jstl + 1.2 + + + taglibs + standard + 1.1.2 + + - - - UTF-8 - 3.1.2.RELEASE - \ No newline at end of file -- Gitee