mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-24 23:41:21 +08:00
build(Dockerfile): 更新 Maven镜像并升级 Java 版本
- 更新 Dockerfile 中的 Maven 镜像版本,使用包含 Temurin 24 的构建环境 - 在 pom.xml 中将 Java 版本从 17 升级到 21
This commit is contained in:
@@ -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
|
WORKDIR /code
|
||||||
COPY pom.xml .
|
COPY pom.xml .
|
||||||
COPY settings.xml .
|
COPY settings.xml .
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -14,7 +14,7 @@
|
|||||||
<name>coal</name>
|
<name>coal</name>
|
||||||
<description>coal</description>
|
<description>coal</description>
|
||||||
<properties>
|
<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>
|
<git-code-format-maven-plugin.version>4.2</git-code-format-maven-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user