mvn dependency:tree produces an output that doesn't contain
The pom.xml has the following explicit dependency:
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.12.6</version>
</dependency>
But when I run mvn dependency:tree in the project, the output doesn't contain jackson-databind dependency.
Could this be because of a parent pom included at the top :
<parent>
<groupId>net.xyz.spark</groupId>
<artifactId>parent-pom</artifactId>
<version>2.12.6</version>
<relativePath/>
</parent>
But I checked the parent pom, and there is no dependency tag. Only the plugins
What could be the reason for this?
CodePudding user response:
This is probably because the dependency is inside <dependencyManagement>
.