mvn compile
79.4% Savings
1 Commands
246 Tokens saved
2 Tests
Install
Safety checks passed
Filter definition
# filters/mvn/compile.toml — Maven compile / package / install
# Handles: mvn compile, mvn package, mvn install, and ./mvnw variants
# Raw output: 50-200+ lines of reactor output, per-module builds, warnings
# Filtered (success): "BUILD SUCCESS (6 modules, 24.1s)"
# Filtered (failure): per-module status + error details
command = ["mvn compile", "mvn package", "mvn install", "mvn verify", "mvn clean compile", "mvn clean package", "mvn clean install", "mvn clean verify", "./mvnw compile", "./mvnw package", "./mvnw install", "./mvnw verify", "./mvnw clean compile", "./mvnw clean package", "./mvnw clean install", "./mvnw clean verify"]
strip_ansi = true
skip = [
"^WARNING: A restricted method",
"^WARNING: java\\.lang",
"^WARNING: Use --enable-native-access",
"^WARNING: Restricted methods will be blocked",
"^WARNING: A terminally deprecated method",
"^WARNING: sun\\.misc\\.Unsafe",
"^WARNING: Please consider reporting this",
"^WARNING: sun\\.misc\\.Unsafe",
"^\\[WARNING\\]",
"^\\[INFO\\] Scanning for projects",
"^\\[INFO\\]\\s*$",
"^\\[INFO\\] ---",
"^\\[INFO\\]\\s+from\\s",
"^\\[INFO\\] Artifact .+ is present in the local repository",
"^\\[INFO\\] Sorting file",
"^\\[INFO\\] Pom file is already sorted",
"^\\[INFO\\] Spotless\\.",
"^\\[INFO\\] argLine set to",
"^\\[INFO\\] Executing tasks",
"^\\[INFO\\] Executed tasks",
"^\\[INFO\\] Nothing to compile",
"^\\[INFO\\] No sources to compile",
"^\\[INFO\\] skip non existing",
"^\\[INFO\\] Reactor Build Order",
"^\\[INFO\\] File stored in the index",
"^\\[INFO\\] Index file does not exist",
"^\\[ERROR\\] To see the full stack trace",
"^\\[ERROR\\] Re-run Maven",
"^\\[ERROR\\] For more information",
"^\\[ERROR\\] \\[Help",
"^\\[ERROR\\] -> \\[Help",
"^Downloading from",
"^Downloaded from",
"^\\s*$",
]
# Per-module chunks — split on "Building <module>" lines
[[chunk]]
split_on = "^\\[INFO\\] Building\\s"
include_split_line = true
collect_as = "modules"
[chunk.extract]
pattern = 'Building\s+(\S+)\s'
as = "module_name"
[[chunk.aggregate]]
pattern = '^\[ERROR\]'
count_as = "error_count"
# Collect reactor summary lines
[[section]]
name = "reactor_summary"
enter = "^\\[INFO\\] Reactor Summary"
exit = "^\\[INFO\\] -{20}"
collect_as = "reactor_lines"
[[section]]
name = "timing"
match = "^\\[INFO\\] Total time:"
collect_as = "total_time"
[[section]]
name = "errors"
match = "^\\[ERROR\\]"
collect_as = "error_lines"
[on_success]
output = "BUILD SUCCESS\n{reactor_lines | lines | join: \"\\n\"}\n{total_time}"
[on_failure]
output = "BUILD FAILURE\n\n{error_lines | lines | keep: \"Compilation failure|Unresolved reference|Type mismatch|cannot find symbol|Failed to execute|could not be resolved|status code: 4\" | join: \"\\n\"}\n\n{reactor_lines | lines | join: \"\\n\"}\n{total_time}"
[fallback]
tail = 10
Examples
compilation failure shows errors and reactor summary
~1363 tokens → ~321 tokens
(76% saved)
Raw output
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/Users/dev/.m2/wrapper/dists/apache-maven-3.9.5-bin/32db9c34/apache-maven-3.9.5/lib/jansi-2.4.0.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/Users/dev/.m2/wrapper/dists/apache-maven-3.9.5-bin/32db9c34/apache-maven-3.9.5/lib/guava-32.0.1-jre.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.example:core:jar:2.1.0-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.testcontainers:testcontainers-bom:pom -> duplicate declaration of version ${testcontainers.version} @ com.example:my-service:2.1.0-SNAPSHOT, /Users/dev/src/my-service/pom.xml, line 307, column 25
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] my-service [pom]
[INFO] core [jar]
[INFO] algorithm [jar]
[INFO] api [jar]
[INFO] consumer [jar]
[INFO] migrator [jar]
[INFO]
[INFO] -----------------------< com.example:my-service >-----------------------
[INFO] Building my-service 2.1.0-SNAPSHOT [1/6]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- kotlin:2.3.10:compile (compile) @ my-service ---
[INFO] No sources to compile
[INFO]
[INFO] -------------------------< com.example:core >--------------------------
[INFO] Building core 2.1.0-SNAPSHOT [2/6]
[INFO] from core/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- kotlin:2.3.10:compile (compile) @ core ---
[INFO]
[INFO] -----------------------< com.example:algorithm >-----------------------
[INFO] Building algorithm 2.1.0-SNAPSHOT [3/6]
[INFO] from algorithm/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- kotlin:2.3.10:compile (compile) @ algorithm ---
[ERROR] /Users/dev/src/my-service/algorithm/src/main/kotlin/com/example/algorithm/SlotCalculator.kt: (42, 15) Unresolved reference: computeSlots
[ERROR] /Users/dev/src/my-service/algorithm/src/main/kotlin/com/example/algorithm/SlotCalculator.kt: (58, 23) Type mismatch: inferred type is String but Int was expected
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for my-service 2.1.0-SNAPSHOT:
[INFO]
[INFO] my-service ......................................... SUCCESS [ 0.532 s]
[INFO] core ............................................... SUCCESS [ 6.210 s]
[INFO] algorithm .......................................... FAILURE [ 2.103 s]
[INFO] api ................................................ SKIPPED
[INFO] consumer ........................................... SKIPPED
[INFO] migrator ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.012 s
[INFO] Finished at: 2026-03-02T11:50:49+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:2.3.10:compile (compile) on project algorithm: Compilation failure: Compilation failure:
[ERROR] /Users/dev/src/my-service/algorithm/src/main/kotlin/com/example/algorithm/SlotCalculator.kt: (42, 15) Unresolved reference: computeSlots
[ERROR] /Users/dev/src/my-service/algorithm/src/main/kotlin/com/example/algorithm/SlotCalculator.kt: (58, 23) Type mismatch: inferred type is String but Int was expected
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Filtered output
BUILD FAILURE [ERROR] /Users/dev/src/my-service/algorithm/src/main/kotlin/com/example/algorithm/SlotCalculator.kt: (42, 15) Unresolved reference: computeSlots [ERROR] /Users/dev/src/my-service/algorithm/src/main/kotlin/com/example/algorithm/SlotCalculator.kt: (58, 23) Type mismatch: inferred type is String but Int was expected [ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:2.3.10:compile (compile) on project algorithm: Compilation failure: Compilation failure: [ERROR] /Users/dev/src/my-service/algorithm/src/main/kotlin/com/example/algorithm/SlotCalculator.kt: (42, 15) Unresolved reference: computeSlots [ERROR] /Users/dev/src/my-service/algorithm/src/main/kotlin/com/example/algorithm/SlotCalculator.kt: (58, 23) Type mismatch: inferred type is String but Int was expected [INFO] [INFO] my-service ......................................... SUCCESS [ 0.532 s] [INFO] core ............................................... SUCCESS [ 6.210 s] [INFO] algorithm .......................................... FAILURE [ 2.103 s] [INFO] api ................................................ SKIPPED [INFO] consumer ........................................... SKIPPED [INFO] migrator ........................................... SKIPPED [INFO] Total time: 9.012 s
successful multi-module compile shows reactor summary
~1987 tokens → ~132 tokens
(93% saved)
Raw output
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/Users/dev/.m2/wrapper/dists/apache-maven-3.9.5-bin/32db9c34/apache-maven-3.9.5/lib/jansi-2.4.0.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/Users/dev/.m2/wrapper/dists/apache-maven-3.9.5-bin/32db9c34/apache-maven-3.9.5/lib/guava-32.0.1-jre.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.example:core:jar:2.1.0-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.testcontainers:testcontainers-bom:pom -> duplicate declaration of version ${testcontainers.version} @ com.example:my-service:2.1.0-SNAPSHOT, /Users/dev/src/my-service/pom.xml, line 307, column 25
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.example:my-service:pom:2.1.0-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.testcontainers:testcontainers-bom:pom -> duplicate declaration of version ${testcontainers.version} @ line 307, column 25
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] my-service [pom]
[INFO] core [jar]
[INFO] algorithm [jar]
[INFO] api [jar]
[INFO] consumer [jar]
[INFO] migrator [jar]
[INFO]
[INFO] -----------------------< com.example:my-service >-----------------------
[INFO] Building my-service 2.1.0-SNAPSHOT [1/6]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- jacoco:0.8.14:prepare-agent (prepare-agent) @ my-service ---
[INFO] argLine set to -javaagent:/Users/dev/.m2/repository/org/jacoco/org.jacoco.agent/0.8.14/org.jacoco.agent-0.8.14-runtime.jar=destfile=/Users/dev/src/my-service/target/jacoco.exec
[INFO]
[INFO] --- antrun:3.1.0:run (install-git-hooks) @ my-service ---
[INFO] Executing tasks
[INFO] Executed tasks
[INFO]
[INFO] --- spotless:3.1.0:apply (default) @ my-service ---
[INFO] Sorting file /var/folders/wr/tmp123/pom4021694899404735419.xml
[INFO] Pom file is already sorted, exiting
[INFO] Spotless.Pom is keeping 1 files clean - 0 were changed to be clean, 1 were already clean, 0 were skipped because caching determined they were already clean
[INFO]
[INFO] --- kotlin:2.3.10:compile (compile) @ my-service ---
[INFO] No sources to compile
[INFO]
[INFO] -------------------------< com.example:core >--------------------------
[INFO] Building core 2.1.0-SNAPSHOT [2/6]
[INFO] from core/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- spotless:3.1.0:apply (default) @ core ---
[INFO] Spotless.Kotlin is keeping 181 files clean - 0 were changed to be clean, 6 were already clean, 175 were skipped because caching determined they were already clean
[INFO] Sorting file /var/folders/wr/tmp123/pom760564804703012630.xml
[INFO] Pom file is already sorted, exiting
[INFO] Spotless.Pom is keeping 1 files clean - 0 were changed to be clean, 1 were already clean, 0 were skipped because caching determined they were already clean
[INFO]
[INFO] --- kotlin:2.3.10:compile (compile) @ core ---
[INFO]
[INFO] -----------------------< com.example:algorithm >-----------------------
[INFO] Building algorithm 2.1.0-SNAPSHOT [3/6]
[INFO] from algorithm/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- spotless:3.1.0:apply (default) @ algorithm ---
[INFO] Spotless.Kotlin is keeping 106 files clean - 0 were changed to be clean, 1 were already clean, 105 were skipped because caching determined they were already clean
[INFO] Sorting file /var/folders/wr/tmp123/pom12875647658671052518.xml
[INFO] Pom file is already sorted, exiting
[INFO] Spotless.Pom is keeping 1 files clean - 0 were changed to be clean, 1 were already clean, 0 were skipped because caching determined they were already clean
[INFO]
[INFO] --- kotlin:2.3.10:compile (compile) @ algorithm ---
[INFO]
[INFO] --------------------------< com.example:api >--------------------------
[INFO] Building api 2.1.0-SNAPSHOT [4/6]
[INFO] from api/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- spotless:3.1.0:apply (default) @ api ---
[INFO] Spotless.Kotlin is keeping 180 files clean - 0 were changed to be clean, 35 were already clean, 145 were skipped because caching determined they were already clean
[INFO] Sorting file /var/folders/wr/tmp123/pom8815273287386501545.xml
[INFO] Pom file is already sorted, exiting
[INFO] Spotless.Pom is keeping 1 files clean - 0 were changed to be clean, 1 were already clean, 0 were skipped because caching determined they were already clean
[INFO]
[INFO] --- kotlin:2.3.10:compile (compile) @ api ---
[INFO]
[INFO] -----------------------< com.example:consumer >------------------------
[INFO] Building consumer 2.1.0-SNAPSHOT [5/6]
[INFO] from consumer/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- kotlin:2.3.10:compile (compile) @ consumer ---
[INFO]
[INFO] -----------------------< com.example:migrator >------------------------
[INFO] Building migrator 2.1.0-SNAPSHOT [6/6]
[INFO] from migrator/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- kotlin:2.3.10:compile (compile) @ migrator ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for my-service 2.1.0-SNAPSHOT:
[INFO]
[INFO] my-service ......................................... SUCCESS [ 2.658 s]
[INFO] core ............................................... SUCCESS [ 8.321 s]
[INFO] algorithm .......................................... SUCCESS [ 4.112 s]
[INFO] api ................................................ SUCCESS [ 6.543 s]
[INFO] consumer ........................................... SUCCESS [ 1.234 s]
[INFO] migrator ........................................... SUCCESS [ 0.876 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.102 s
[INFO] Finished at: 2026-03-02T11:50:49+01:00
[INFO] ------------------------------------------------------------------------ Filtered output
BUILD SUCCESS [INFO] [INFO] my-service ......................................... SUCCESS [ 2.658 s] [INFO] core ............................................... SUCCESS [ 8.321 s] [INFO] algorithm .......................................... SUCCESS [ 4.112 s] [INFO] api ................................................ SUCCESS [ 6.543 s] [INFO] consumer ........................................... SUCCESS [ 1.234 s] [INFO] migrator ........................................... SUCCESS [ 0.876 s] [INFO] Total time: 24.102 s
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.Browse all filters