mvn org.apache.maven.plugins:maven-dependency-plugin:3.0.2:tree -DoutputFile=/tmp/dependencies.txt -DoutputType=dot -DappendOutput=true
I'm using the above command to get a list of dependencies i.e the direct and transitive dependencies. I want an alteration in the above command which would give me a list of only the direct dependencies and ignore all the transitive dependencies. I don't want to use any other command nor do i want to change the output file format. Our parsers are dependent on the output file format. Does anyone have any solution for this?