Reputation: 4357
This question is about Maven. My project has spring-boot-starter-parent
as its parent. Mvn Repository's link, shows that through all parent hierarchies, spring-boot-starter-parent
has 273 dependencies in total.
However, when I run the goal dependency:copy-dependencies, I get only a handful of jars, and in particular, I notice that javassist
is not one of the jars. Why aren't the jars for all 273 dependencies copied by dependency:copy-dependencies
? Can Maven somehow tell if some of these dependencies are not needed by my project?
Upvotes: 0
Views: 373
Reputation: 6134
There are 273 managed dependencies in spring-boot-starter-parent
. Managed dependencies are just there to give maven details about libraries your project uses when it needs it. They are not actually included in your project when it gets built. The dependencies included are those in your project's <dependencies>
section and their transitive dependencies. Hence the difference you see.
Upvotes: 2