Вы можете использовать встроенные версии:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
или свойства:
<project>
...
<properties>
<junit.version>4.8.2</junit.version>
</properties>
...
</project>
Используйте это свойство в <dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>