3 ms·
I use maven-enforcer-plugin to force resolution of dependency conflicts. It's a pain at first to go through and add all the exclusions. But then I don't have di
by euvitudo 9y ago
I use maven-enforcer-plugin to force resolution of dependency conflicts. It's a pain at first to go through and add all the exclusions. But then I don't have dig through the dependencies in, e.g., a war, to find duplicate versions of a package.
Edit: Then I cross my fingers hoping there isn't a breakage or unexpected behavior somewhere.
- voodootrucker 9y agoMaven enforcer is a good idea for sure, but as I recall it just notifies you of a version issue, and allows you to explicitly select one or the other. Sadly, these breaking changes can be mutually exclusive: e.g. a method was renamed that A & B both use, so no matter which version you pick something fails. I remember once having to do a binary search through versions of Guava to find one between 15 and 18 that happened to be the one that was "just right".