Apache Maven best practices

MSAL

A collection of recipes that apply best practices to Maven POMs. Some of these recipes affect build stability, so they are reported as security issues in the DevCenter card.

io.moderne.devcenter.ApacheMavenBestPractices
mod run . --recipe=io.moderne.devcenter.ApacheMavenBestPractices

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Add explicit groupId to Maven plugins
  2. Add explicit plugin versions
  3. Drop prefixless expressions in POM
  4. Order POM elements
  5. Remove duplicate Maven dependencies
  6. Remove redundant explicit dependency and plugin versions
  7. Remove redundant properties
  8. Migrate to maven-dependency-plugin goal resolve-sources
  9. Update SCM with Git origin
  10. Security DevCenter