Maven: how to override the dependency added by a library

Simply specify the version in your current pom. The version specified here will override other.

Forcing a version
A version will always be honoured if it is declared in the current POM with a particular version – however, it should be noted that this will also affect other poms downstream if it is itself depended on using transitive dependencies.


Resources :

Leave a Comment