My pom.xml is messy, having collected cruft over time. Is there any automated way to "clean up" a pom? Like a linter but for maven.
In IntelliJ I can run Analyze > Inspect Code and get a list of unused functions, silly iterators, and probable bugs. I think I'm looking for the same thing for my pom
- Unused repositories, pluginRepositories
- Unused properties
- properties that collide with settings specified within the plugin
- Dependencies with more recent versions (
mvn versions:display-dependency-updatesworks, but doesn't restrict to non-breaking version updates)