I don’t know how Maven defines it. It is not necessary to refer to all the points indicated in this document, but this information can be used as necessary.
The undeclared dependencies used are those that are required, but have not been explicitly declared as dependencies in your project. However, they are available due to a transition dependency on other dependencies in your project. It is a good idea to explicitly declare these dependencies. It also allows you to control the version of these dependencies (possibly matching the version provided by your work environment).
For unused declared dependencies, it is recommended that you remove them. Why add unnecessary dependency on your project? But then transitivity can lead them in any case, possibly to a contradiction with your run-time versions. In this case, you will need to specify them - essentially, to control version .
By the way, mvn dependency:tree gives you a project dependency tree, which gives you a better idea of how each dependency fits into your project.
Raghuram Dec 31 '10 at 2:40 2010-12-31 02:40
source share