build(Dockerfile): 更新 Maven镜像并升级 Java 版本

- 更新 Dockerfile 中的 Maven 镜像版本,使用包含 Temurin 24 的构建环境
- 在 pom.xml 中将 Java 版本从 17 升级到 21
This commit is contained in:
2025-04-08 21:51:51 +08:00
parent 535c06c0b6
commit 2d2bb438f7
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
FROM registry-vpc.cn-beijing.aliyuncs.com/lihongjie/maven:3-eclipse-temurin-17 as build
FROM registry-vpc.cn-beijing.aliyuncs.com/lihongjie/maven:3-eclipse-temurin-24-noble as build
WORKDIR /code
COPY pom.xml .
COPY settings.xml .

View File

@@ -14,7 +14,7 @@
<name>coal</name>
<description>coal</description>
<properties>
<java.version>17</java.version>
<java.version>21</java.version>
<git-code-format-maven-plugin.version>4.2</git-code-format-maven-plugin.version>
</properties>