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-updates
works, but doesn't restrict to non-breaking version updates)
settings.xml
. 2. To determine whether a property is used or not would mean to look inside the plugin code. 3. Maybe this could be done 4. How do you know if a version is non-breaking? If you want to avoid major upgrades, there a parameter for that. – Clansman