~/talk

Apache Maven 102: Best Practices

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

Maven advice that actually changes builds: prefer pinned Maven and Java versions with the Maven Wrapper and sdkman, avoid dependency ranges because they make builds break unpredictably, and stop habitually running clean/install — a 14-module project shows jar build in 0.5s and install in 0.13s. Use surefire/failsafe split for unit vs integration tests, merge coverage with JaCoCo, avoid test-jars and reckless shade usage, enable build cache and multithreaded/parallel tests, try Maven Daemon and evaluate Maven 4’s new POM split.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Speaker background
  3. 2:20Gradle and Maven
  4. 3:39XML and dependencies
  5. 5:07Managing dependencies
  6. 6:35Dependency management
  7. 8:17Build lifecycle and tips
  8. 13:37Plugin configuration
  9. 15:24Custom logic in Maven
  10. 16:53Commit or omit
  11. 18:21Dependency ranges
  12. 20:06Separating tests
  13. 21:36Maven profiles
  14. 22:30Test jars and Uber jars
  15. 23:07Source jars and reproducibility
  16. 24:02Build optimization
  17. 25:40Parallel testing
  18. 26:34Maven demon and version 4
  19. 27:52Final wrap-up
  20. 28:49Audience questions
  21. 31:29Final thank you
~/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.