[devnexus 2026] Maven’s Hidden Secrets to Speed up your Build

Speaker: Ko Turk (@KoTurk77)

See the DevNexus live blog table of contents for more posts


Waiting

  • Showed spring boot app with tests. Took 51 seconds
  • Real builds could even take 30 minutes

General

  • About 75% use Maven, about half use Gradle (so many both) and small percentage Ant.
  • Maven created in 2002
  • Became top level Apache project in 2023
  • Maven 4 is a release candidate – it does parallel building better
  • mvnup check – for migrating to Maven 4
  • Can install through website, brew, sdkman, daemon, wrapper, etc

Daemon

  • JDK background process stays in memory so warm
  • Reuses plugins

Hierarcy

  • Lifecycles – clean, build, etc
  • Phases – clean, process-resources, compile, etc
  • Maven plugins
  • Maven goals

Also showed

  • Profiling plugins such as jcgay/maven-profiler or Gradle develocity
  • Adding echo ot the pre-clean phase
  • Maven clean verify vs mvn clean install
    • failsafe vs surefire. Can run integration tests in profile so control when run

Covered after I left: see deck

My take

I liked that he played music while running a build to show how long a simple build takes. The pirate/treasure map theme was fun. I had to leave this session at the halfway part but I enjoyed the part I saw. Good mix of slides and showing.

Leave a Reply

Your email address will not be published. Required fields are marked *