I have json-smart 2.4.10 but in dependency tree, it shows 2.3

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:compile

There'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.

3

1 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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like