Use Maven 4 parent inference
Apache 2.0Maven 4.1.0 supports automatic parent version inference when using a relative path. This recipe simplifies parent declarations by using the shorthand <parent/> form when the parent is in the default location (..), removing the explicit <relativePath>, <groupId>, <artifactId>, and <version> elements. Maven automatically infers these values from the parent POM.
org. openrewrite. maven. UseParentInferencemod run . --recipe= org. openrewrite. maven. UseParentInferenceInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.