Replace removed root directory properties

Apache 2.0

Maven 4 removed support for deprecated root directory properties. This recipe replaces ${executionRootDirectory} with ${session.rootDirectory} and ${multiModuleProjectDirectory} with ${project.rootDirectory}.

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

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. Rename Maven property key executionRootDirectory to session.rootDirectory
  2. Rename Maven property key multiModuleProjectDirectory to project.rootDirectory