Sometimes, conflicts occur between the dependencies. Suppose there are two dependencies like commons-logging and servlet-api, one has to be excluded. So, to remove the conflict,
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:
All the JAR files being brought to the project are found on the left and the resolved list of dependencies that are going to be used in the project on the right of the window.
In the above window, all the compiled and provided words are represented in brackets. Provided defines that the dependency will be used while compiling and executing the tests. Provided dependencies cannot be used in packaged files. Compile specifies the dependencies in JAR, and WAR files.
One can also select the required node to highlight the linked dependencies. The jar logo on the folders indicates that the artifact is from the Maven Repository.
|provided||by JDK or a container at run-time|
|runtime||not required for compilation|
|test||Used only during tests|
|import||Available only in Maven 2.0.9 or later|