DevCenter for Apache Maven

MSAL

A DevCenter that tracks the latest Apache Maven parent POM versions and applies best practices. This DevCenter includes recipes to upgrade the parent POMs of Apache Maven, as well as a collection of best practices for Maven POMs.

Move to the latest maven-parent

The version of the org.apache.maven:maven-parent parent POM, compared to version 50.
Major to Completed

Major → Minor → Patch → Completed · fix with UpgradeMavenParent

Move to the latest maven-plugins

The version of the org.apache.maven.plugins:maven-plugins parent POM, compared to version 50.
Major to Completed

Major → Minor → Patch → Completed · fix with UpgradeMavenPluginsParent

Move to the latest maven-shared-components

The version of the org.apache.maven.shared:maven-shared-components parent POM, compared to version 50.
Major to Completed

Major → Minor → Patch → Completed · fix with UpgradeMavenSharedParent

Move to Java 17

The Java version each repository compiles for.
Java 8+ to Completed

Java 8+ → Java 11+ → Completed · fix with UpgradeToJava17

Apache Maven best practices

POM issue occurrences per check, counted across all repositories.
9 categories

Add explicit groupId to Maven plugins · Add explicit plugin versions · Drop prefixless expressions in POM · Order POM elements · Remove duplicate Maven dependencies · Remove redundant explicit dependency and plugin versions · Remove redundant properties · Migrate to maven-dependency-plugin goal resolve-sources · Update SCM with Git origin · fix with BestPractices

The DevCenter also counts lines of code per repository and committers active in the last 90 days. See the DevCenter documentation to customize.

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

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. Find organization statistics
  2. Find active committers on repositories
  3. Move to the latest maven-parent
  4. Move to the latest maven-plugins
  5. Move to the latest maven-shared-components
  6. Move to Java 17
  7. Apache Maven best practices