You can manage version ranges for each dependency, for example:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>[4.0,)</version>
<scope>test</scope>
</dependency>
This means that you expect at least version 4.0 junit, but the latest version will be used when it is available.
source
share