Maven 包含在包中的测试范围内的依赖项的传递依赖项
我不明白为什么测试范围依赖项的传递依赖项包含在包中(来自 Maven 包阶段)。我使用默认设置的 maven-war-plugin 。
这没有意义,不是吗?当您有 10 个测试范围依赖项(所有依赖项都具有一些日志传递依赖项)时,就会出现问题,并且您必须排除所有这些依赖项。不仅必须在编译范围依赖项中执行此操作,甚至对于测试范围依赖项也必须执行此操作。
I don't understand why transitive dependencies of test scope dependencies are included into package (from maven package phase). I'm using maven-war-plugin with default settings.
It doesn't make sense, does it ? The problems arise when you have 10 test scope deps, all with some logging transitive dependencies, and you have to exclude all of them. Not only that one has to do it in compile scope dependencies, but even for test scope deps.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Maven bug MNG-5150 至少破坏了
jboss-packaging-plugin
如 MJBOSSPACK-40 中所述。我猜想同样的错误也会破坏
maven-war-plugin
。Maven bug MNG-5150 breaks at least
jboss-packaging-plugin
as described in MJBOSSPACK-40.I would guess that the same bug also breaks
maven-war-plugin
.