maven,如何找出X:Y工件来自哪里?

发布于 2025-01-05 18:05:26 字数 438 浏览 2 评论 0原文

我没有看到同一问题的明确答案

我如何找出 Maven 从哪里获取工件?

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

各自安好 2025-01-12 18:05:26

在命令行上,执行:

mvn dependency:tree -Dincludes=the.groupId

请参阅: dependency:tree 魔力

并且:

我点击它并选择从项目中排除,但这不起作用
任何东西......

您是否正在使用带有 m2e 的最新版本的 Eclipse?因为以前的 m2eclipse 版本永远无法做到这一点,但 m2e 可以。

On the command line, do:

mvn dependency:tree -Dincludes=the.groupId

See: dependency:tree mojo

And:

I click on it and choose exclude from project which doesn't do
anything....

Are you using a current version of Eclipse with m2e? Because previous versions with m2eclipse could never do that, but m2e can.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文