Skip to content

Commit 209b538

Browse files
committed
ci: 构建改用项目自带 Maven 4 wrapper——runner 自带 Maven 3 无法解析 POM 4.1.0 模型
1 parent b3dc58f commit 209b538

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
# - push / pull_request on the feature/3.0.x branch
55
# - manual workflow_dispatch
66
#
7-
# Runs `mvn -B clean verify` which includes the JaCoCo coverage gate
7+
# Runs `./mvnw -B clean verify` (Maven 4 via the checked-in wrapper — the
8+
# runner's bundled Maven 3 cannot parse the POM 4.1.0 model) which includes
9+
# the JaCoCo coverage gate
810
# (90% line coverage, haltOnFailure=false) configured in the POM.
911
name: CI
1012

@@ -35,7 +37,7 @@ jobs:
3537
cache: maven
3638

3739
- name: Build and verify with JaCoCo coverage gate
38-
run: mvn -B --no-transfer-progress clean verify
40+
run: ./mvnw -B --no-transfer-progress clean verify
3941

4042
- name: Upload JaCoCo coverage report
4143
if: always()

0 commit comments

Comments
 (0)