init-cicd-build-maven
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 17s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 17s
This commit is contained in:
parent
783c07fa30
commit
29de3aaecc
@ -30,15 +30,15 @@ jobs:
|
||||
cache: "maven"
|
||||
- run: java -version
|
||||
# 缓存 Maven 依赖
|
||||
- name: Cache Maven packages
|
||||
uses: https://git.pintantan.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
# - name: Cache Maven packages
|
||||
# uses: https://git.pintantan.com/actions/cache@v3
|
||||
# with:
|
||||
# path: ~/.m2/repository
|
||||
# key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
# restore-keys: ${{ runner.os }}-m2
|
||||
|
||||
- name: 编译
|
||||
run: chmod +x ./mvnw && ./mvnw -s settings.xml -B -Ptrydo -Phuawei clean install -U -DskipTests -Pprod
|
||||
run: mvn -s settings.xml -B -Ptrydo -Phuawei clean install -U -DskipTests -Pprod
|
||||
|
||||
- run: mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user