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
The following workflow seems to be ok:
Download the pom from Maven central, put it a separate directory and name it pom.xml.
pom.xml
Apply mvn dependency:list -DexcludeTransitive and grab the console output.
mvn dependency:list -DexcludeTransitive
Filter the list of dependencies from the console output.