dependency:tree
and dependency:resolve
are the required goals to be given in the command prompt.
Dependency Tree acts as a investigation tool to define the dependency by making a list of resolved dependencies. It searches and filters the required dependencies.
There are two ways to accomplish the dependencies as outputs in projects, they are:
Dependency | Scope |
---|---|
compile | default |
provided | by JDK or a container at run-time |
runtime | not required for compilation |
test | Used only during tests |
system | provided locally |
import | Available only in Maven 2.0.9 or later |