Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将一个 maven 项目迁移到 ant + ivy (这是一个任意决定,必须完成)。
问题是比较两个WAR文件,ant和maven文件,前者比第一个有更多的第3方罐子......
起初我认为它们是传递依赖,但是当我运行mvn dependency:tree 它们时,它们并没有出现在那里。
mvn dependency:tree
有任何想法吗?
编辑:
只是为了记录,我知道scopemaven的属性。我在 ivy.xml 文件中排除了所有提供和测试的依赖项
scope
您可以使用 ivy:report Ant 任务生成由 Ivy 解析的依赖关系的报告。在此报告中,您可以看到额外依赖项的来源。
马丁