← Catalogue

maven_gradle

Maven's `[ERROR]` lines - the compiler and test diagnostics Maven relays.

jvmbuildtoolmatcher

Open in playgroundFile on GitHubHistory

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

alljvm

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