Question: What will the mvn dependency:tree command do?

  1. Verify the dependencies defined in the POM file.
  2. Print out a report of your project's dependencies in a tree format.
  3. Download all the transitive dependencies.
  4. Prune unused dependencies from your dependency tree.

Answer: The correct answer of the above question is Option B:Print out a report of your project's dependencies in a tree format.