I just experienced a case of two direct dependencies of my maven project having two different versions of a particular transitive dependency.
In my particular case I had
You could just have a look at your dependency hiercharchy overview. This won't warn you, but you can see if certain versions are discarded for newer versions of the same library.
dependency hiercharchy