I'm in a module with
<dependency> <groupId>net.minidev</groupId> <artifactId>json-smart</artifactId> <version>2.4.10</version>
</dependency>However, when I do mvn dependency:tree it's still showing 2.3:
[INFO] +- net.minidev:json-smart:jar:2.3:compile
[INFO] | \- net.minidev:accessors-smart:jar:1.2:compileThere's no other spot where I can find json-smart 2.3, I checked the entire multi module project, but nowhere it shows 2.3. I'm not sure what I'm missing.
31 Answer
The issue was that there's a transitive dependency that was overwriting the root dependency. Removing the root dependency exposed where the transitive dependency was, then excluding it. This resolved it.