maven,如何找出X:Y工件来自哪里?
我没有看到同一问题的明确答案
我有一个 jar slf4j-log4j,它通过其他一些工件潜入我们的项目。在 Eclipse 中,我单击依赖项层次结构并看到那里的 jar,我单击它并选择从不执行任何操作的项目中排除...我尝试右键单击并查看是否可以看到将其带入的父级该项目....不。
如何从带进来的神器中看到所有父母的图表?
这都是因为 Maven 似乎没有像 ivy 那样具有全局排除:( :( :( 所以我需要在引入它的项目上排除这个 jar (而且我们有太多的项目,需要查看每一个项目) )。
谢谢, 院长
I didn't see a clear answer from the same question
How can I figure out where Maven got an artifact from?
I have a jar slf4j-log4j that is sneaking into our project via some other artifact. In eclipse, I click on dependency hierarchy and see the jar there, I click on it and choose exclude from project which doesn't do anything....I try to right click and see if I can see it's parent that brought it into the project....nope.
How to see the graph of all parents from the artifact that was brought in?
This is all because maven doesn't seem to have global excludes like ivy does :( :( :( so I need to exclude this jar on that project that brought it in(and we have too many projects too look at each and every one).
thanks,
Dean
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在命令行上,执行:
请参阅:
dependency:tree
魔力并且:
您是否正在使用带有 m2e 的最新版本的 Eclipse?因为以前的 m2eclipse 版本永远无法做到这一点,但 m2e 可以。
On the command line, do:
See:
dependency:tree
mojoAnd:
Are you using a current version of Eclipse with m2e? Because previous versions with m2eclipse could never do that, but m2e can.