sunmingtao / sample-code

3 stars 4 forks source link

Maven artifact version from dependency tree doesn't match the version in the pom of the dependency jar #323

Closed sunmingtao closed 2 years ago

sunmingtao commented 2 years ago

Amberdb has mysql connector version = 8.0.20 image

However, in dl-trove-repo, which has amberdb as a dependency, has the inherited mysql connector version = 8.0.25 image

Eclipse pom analysis shows no jar conflict, but does say (managed from 8.0.20) image

So where does the version 8.0.25 come from?

sunmingtao commented 2 years ago

It turns out dl-trove-service has a parent

image

The parent defines mysql connector version = 8.0.25 image

Where it says managed from xxx, it means the version gets overridden either in the current project, or its parent or its grand parent....