Apache Maven best practices
Apache 2.0Applies best practices to Maven POMs.
org. openrewrite. maven. BestPracticesmod run . --recipe= org. openrewrite. maven. BestPracticesInstall 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.
- Add explicit dependency versions
- Add explicit
groupIdto Maven plugins - Add explicit plugin versions
- Dependencies should not have
systemscope - Drop prefixless expressions in POM
- Order POM elements
- Remove duplicate Maven dependencies
- Remove duplicate plugin declarations
- Remove redundant explicit dependency and plugin versions
- Remove redundant properties
- Dependency management dependencies should have a version
- Modernize obsolete Maven poms
- Migrate to
maven-dependency-plugingoalresolve-sources - Update SCM with Git origin