Repository navigation
Clean up declared dependencies #13749
Copy link
Copy link
Closed
Labels
Description
mvn dependency:analyze across the Maven repositories reports dependencies that are declared but unused, declared in the wrong scope or in a parent that does not need them, and third-party libraries the code uses but only gets transitively. Every finding below was checked against the sources, applied in a separate pull request per repository, and kept only if the full test suite still passed; the analysis then no longer reports it.
Not changed on purpose: used-but-undeclared Maven API, Sisu/Guice/javax.inject, test-framework and SLF4J artifacts (declaring Maven core artifacts follows separately), and anything that only a build with GraalVM, or an external tool, could verify.
Pull requests:
- Clean up declared dependencies maven-archiver#435
- Clean up declared dependencies maven-resources-plugin#557
- Clean up declared dependencies maven-javadoc-plugin#1419
- Clean up declared dependencies maven-compiler-plugin#1186
- Clean up declared dependencies maven-enforcer#1068
- Clean up declared dependencies maven-archetype#1052
- Clean up declared dependencies maven-resolver-ant-tasks#203
- Clean up declared dependencies maven-indexer#821
- Clean up declared dependencies maven-scm#1422
- Clean up declared dependencies maven-wagon#1013
- Clean up declared dependencies maven-mvnd#1893
- Clean up declared dependencies codehaus-plexus/modello#620
- Clean up declared dependencies codehaus-plexus/plexus-sec-dispatcher#152
- Clean up declared dependencies mojohaus/rpm-maven-plugin#161
- Clean up declared dependencies maven-resolver#2246
- Clean up declared dependencies #13750
- Clean up declared dependencies maven-dist-tool#233
- Clean up declared dependencies maven-doxia#1118
- Clean up declared dependencies maven-apache-resources#139
- Clean up declared dependencies maven-gpg-plugin#353
- Clean up declared dependencies maven-ejb-plugin#250
- Clean up declared dependencies maven-executor#74
- Clean up declared dependencies maven-checkstyle-plugin#729
- Clean up unused, declared dependencies (remove doxia-core) maven-pmd-plugin#762
- Clean up declared dependencies maven-wrapper#470
- Clean up declared dependencies maven-site-plugin#1335
Declaring the artifacts the code uses directly:
- Declare the Maven artifacts the code uses maven-antrun-plugin#400
- Declare the Maven artifacts the code uses maven-compiler-plugin#1187
- Declare the Maven artifacts the code uses maven-dist-tool#234
- Declare the Maven artifacts the code uses maven-doxia-sitetools#721
- Declare the Maven artifacts the code uses maven-enforcer#1070
- Declare the Maven artifacts the code uses maven-filtering#429
- Declare the Maven artifacts the code uses maven-indexer#822
- Declare the Maven artifacts the code uses maven-mvnd#1894
- Declare the Maven artifacts the code uses maven-resolver-ant-tasks#204
- Declare the Maven artifacts the code uses maven-resolver#2247
- Declare the Maven artifacts the code uses maven-shade-plugin#883
- Declare the Maven artifacts the code uses maven-site-plugin#1336
- Declare the Maven artifacts the code uses maven-xinclude-extension#50
- Declare the Maven artifacts the code uses #13754
Activity
gnodet commentedon Oct 29, 2026
Note that dependency:analyze has some flaws in its implementation. I would encourage to use pilot:dependencies instead.
https://github.com/maveniverse/pilot
slawekjaranowski commentedon Oct 30, 2026
I would like to improve
dependency:analyzealso 😄