指定打包时的maven版本
Some checks failed
Build and Deploy Spring Boot / build-and-deploy (push) Failing after 5m32s
Some checks failed
Build and Deploy Spring Boot / build-and-deploy (push) Failing after 5m32s
This commit is contained in:
parent
80dc2001de
commit
1eca6e7bcf
@ -15,10 +15,12 @@ jobs:
|
|||||||
|
|
||||||
# 设置JDK环境
|
# 设置JDK环境
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3 # 使用最新的 v3 版本
|
||||||
with:
|
with:
|
||||||
java-version: '8'
|
java-version: '8'
|
||||||
distribution: 'adopt'
|
distribution: 'temurin' # 或者使用 'adopt', 'zulu' 等其他发行版
|
||||||
|
cache: 'maven' # 自动缓存 Maven 依赖
|
||||||
|
maven-version: '3.8.6' # 指定 Maven 版本
|
||||||
|
|
||||||
# 缓存Maven依赖
|
# 缓存Maven依赖
|
||||||
- name: Cache Maven packages
|
- name: Cache Maven packages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user