maven_gradle
Maven's `[ERROR]` lines - the compiler and test diagnostics Maven relays.
jvmbuildtoolmatcher
Install: ci-doctor matchers add official/maven_gradle
matchers/jvm/maven_gradle/matcher.yaml
id: maven_gradlerole: toolclassification: [jvm, build]description: Maven's `[ERROR]` lines - the compiler and test diagnostics Maven relays.pattern: \[ERROR\]before: 3after: 15
In bundles
Fixtures
Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.
maven_build_failureOpen in playground
1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: maven_build_failure
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run mvn -B -ntp verify
35mvn -B -ntp verify
36shell: /usr/bin/bash -e {0}
37##[endgroup]
38[INFO] Scanning for projects...
39[INFO] ------------------< com.acme:ledger-service >-------------------
40[INFO] Building ledger-service 3.4.1
41[INFO] --------------------------------[ jar ]---------------------------------
42[INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ ledger-service ---
43[INFO] Copying 6 resources from src/main/resources to target/classes
44[INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ ledger-service ---
45[INFO] Compiling 84 source files with javac [debug release 21] to target/classes
46[INFO] -------------------------------------------------------------
47[ERROR] COMPILATION ERROR :
48[INFO] -------------------------------------------------------------
49[ERROR] /builds/team/ledger/src/main/java/com/acme/ledger/PostingService.java:[62,38] incompatible types: java.util.Optional<java.math.BigDecimal> cannot be converted to java.math.BigDecimal
50[ERROR] /builds/team/ledger/src/main/java/com/acme/ledger/PostingService.java:[71,9] cannot find symbol
51[ERROR] symbol: method recordAudit(java.lang.String)
52[ERROR] location: class com.acme.ledger.PostingService
53[INFO] 3 errors
54[INFO] -------------------------------------------------------------
55[INFO] ------------------------------------------------------------------------
56[INFO] BUILD FAILURE
57[INFO] ------------------------------------------------------------------------
58[INFO] Total time: 24.881 s
59[INFO] Finished at: 2026-01-09T11:20:38Z
60[INFO] ------------------------------------------------------------------------
61[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project ledger-service: Compilation failure
62[ERROR] -> [Help 1]
63[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
64##[error]Process completed with exit code 1.
65##[group]Post Run actions/checkout@v4
66##[endgroup]
67/usr/bin/git version
68git version 2.54.0
69##[group]Post Run actions/upload-artifact@v4
70##[endgroup]
71Artifact upload complete.
72Post job cleanup.
73Cleaning up orphan processes
1Running with gitlab-runner 16.9.1 (d773c4a1)
2 on private-runner-11 Yt2Hm9Kd, system ID: s_0f1e2d3c4b5a
3Preparing the "docker" executor
4 Using Docker executor with image maven:3.9-eclipse-temurin-21 ...
5Using Docker executor with image maven:3.9-eclipse-temurin-21 ...
6Using docker image sha256:33cc44dd55ee for maven:3.9-eclipse-temurin-21 with digest maven@sha256:7788...
7Preparing environment
8Running on runner-yt2hm9kd-project-63-concurrent-2...
9Fetching changes with git depth set to 50...
10Checking out 9f21b40c as detached HEAD...
11Checking cache for maven-repo-21...
12Successfully extracted cache
13$ mvn -B -ntp verify
14[INFO] Scanning for projects...
15[INFO] ------------------< com.acme:ledger-service >-------------------
16[INFO] Building ledger-service 3.4.1
17[INFO] --------------------------------[ jar ]---------------------------------
18[INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ ledger-service ---
19[INFO] Copying 6 resources from src/main/resources to target/classes
20[INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ ledger-service ---
21[INFO] Compiling 84 source files with javac [debug release 21] to target/classes
22[INFO] -------------------------------------------------------------
23[ERROR] COMPILATION ERROR :
24[INFO] -------------------------------------------------------------
25[ERROR] /builds/team/ledger/src/main/java/com/acme/ledger/PostingService.java:[62,38] incompatible types: java.util.Optional<java.math.BigDecimal> cannot be converted to java.math.BigDecimal
26[ERROR] /builds/team/ledger/src/main/java/com/acme/ledger/PostingService.java:[71,9] cannot find symbol
27[ERROR] symbol: method recordAudit(java.lang.String)
28[ERROR] location: class com.acme.ledger.PostingService
29[INFO] 3 errors
30[INFO] -------------------------------------------------------------
31[INFO] ------------------------------------------------------------------------
32[INFO] BUILD FAILURE
33[INFO] ------------------------------------------------------------------------
34[INFO] Total time: 24.881 s
35[INFO] Finished at: 2026-01-09T11:20:38Z
36[INFO] ------------------------------------------------------------------------
37[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project ledger-service: Compilation failure
38[ERROR] -> [Help 1]
39[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
40Running after_script
41$ echo "build failed, skipping deploy"
42build failed, skipping deploy
43Uploading artifacts for failed job
44WARNING: target/*.jar: no matching files. Ensure that the artifact path is relative to the working directory
45ERROR: Job failed: exit code 1