~/talk

Accelerating Maven Builds: From Snail's Pace to Rocket Speed

Talkat JCON EUROPE 2024 · 2024-05-13..05-16· [devops-and-delivery]
links:none on file
slides:none on file

Measures build time with the OpenTelemetry Maven extension and a Jaeger collector so you see per-module and per-plugin timing; a Shiro demo drops tests from ~1m27s to ~55s by enabling parallel test execution (Surefire or JUnit Jupiter) but requires thread‑safe tests. Use Maven Daemon (mvnD) to keep a warm JVM, load plugins once and run multimodule builds in parallel (examples show ~1m20s), and apply the Maven build-cache (Maven 3.9+/4) to skip unchanged work — demos show subsequent builds in fractions of a second. Pitfalls: non‑thread‑safe plugins, cache invalidation on config changes.

AI-written summary · about

  1. 0:00Intro
  2. 3:33Open Telemetry Extension
  3. 5:47Measurement Demo
  4. 9:16Parallel Test Execution
  5. 14:58Parallel Test Demo
  6. 18:45The Maven Demon
  7. 25:45Demonstration
  8. 32:12Pros Cons
  9. 33:25Why not for libraries
  10. 34:05More modules
  11. 35:25Have you tried this
  12. 35:45The Maven Reactor
  13. 37:16Build Server
  14. 37:56Maven 4 Build Server
  15. 38:39Optimizing Work Not Done
  16. 39:02How does the BuildCach work
  17. 39:42How does the BuildCach know which parts have changed
  18. 40:12When to use the BuildCach extensions
  19. 41:13How to install BuildCach
  20. 45:35Honorable mentions
  21. 46:45Wrap up
  22. 47:56Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.