【问题标题】:What is a good way to list all dependencies from pom.xml file?列出 pom.xml 文件中所有依赖项的好方法是什么?
【发布时间】:2020-02-26 10:33:20
【问题描述】:

我正在尝试比较来自不同项目的 pom.xml 文件。我计划在 pom.xml 中明确列出所有直接依赖项的简单列表,然后比较和合并它们。

有什么好的方法可以做到这一点?

【问题讨论】:

    标签: xml


    【解决方案1】:

    在命令行上:

    $ mvn dependency:tree
    

    另见List of dependency jar files in Maven

    【讨论】:

    • 这列出了整个依赖树。不仅仅是 pom.xml 中声明的那些
    猜你喜欢
    • 2023-03-03
    • 2019-04-16
    • 2021-10-23
    • 2021-06-12
    • 1970-01-01
    • 1970-01-01
    • 2022-12-18
    • 2019-04-16
    • 2015-03-13
    相关资源
    最近更新 更多