want to print maven dependency tree (all the dependencies including transitive dependencies) programmatically by just reading pom.xml file without connecting to remote repository.
CodePudding user response:
Not really possible, sorry. Also, have you checked the answer and comments here? How can you display the Maven dependency tree for the *plugins* in your project?
CodePudding user response:
I can recommend to take a look at the maven resolver project which has some example code which might be sufficient as a starting point:
