Why maven test dependency include compile dependency?

ぃ、小莉子 提交于 2020-06-17 15:57:06

问题


I do a mvn dependendy:tree and get something like:

|
+- some.dependency:for-test:jar:1.2.3:test    <---- for test only
   +- ...
   +- ...
   +- some.other.dependency:big-dependency:jar:compile  <---- include compile dependency?
      +- lots.of.big:dependencies

Question: Why would a test dependency bring compile dependencies?

Sub-question: I am asking because I try to reduce the size of a shaded jar. How do I get ride of those?

Note: in the tree, the included compiled dependency some.other.dependency:big-dependency appear nowhere else in the tree.

来源:https://stackoverflow.com/questions/62287164/why-maven-test-dependency-include-compile-dependency

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!