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 :

  • Dependency Mediation and Conflict Resolution
  • Introduction to the Dependency Mechanism

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)