Migrate to Maven 3.10

Apache 2.0

Migrates a project to Maven 3.10. Maven 3.10 rejects some POMs that earlier Maven 3 versions built with a warning, such as POMs with duplicate dependency or plugin declarations, or with a parent relativePath that holds coordinates instead of a path. This recipe fixes those POMs, updates an existing Maven wrapper to Maven 3.10, and then removes encoding and output timestamp properties that equal the Maven 3.10 super POM defaults.

org.openrewrite.maven.MigrateToMaven3_10
mod run . --recipe=org.openrewrite.maven.MigrateToMaven3_10

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. Remove duplicate plugin declarations
  2. Remove duplicate Maven dependencies
  3. Remove invalid parent relativePath
  4. Update Maven wrapper
  5. Remove redundant properties
  6. Remove redundant properties
  7. Remove redundant properties