Find all direct dependencies of an artifact on Maven Central

前端 未结 2 1653
粉色の甜心
粉色の甜心 2021-01-03 06:27

For an artifact on Maven central (or any other given Nexus repository), I want to make a list of all direct dependencies.

At first, I thought about just reading the

2条回答
  •  独厮守ぢ
    2021-01-03 06:51

    The following workflow seems to be ok:

    1. Download the pom from Maven central, put it a separate directory and name it pom.xml.

    2. Apply mvn dependency:list -DexcludeTransitive and grab the console output.

    3. Filter the list of dependencies from the console output.

提交回复
热议问题