Why mvnrepository.com or nexus does not follow a convention to have a latest version, for example:
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>latest</version>
</dependency>
The version latest will always point to the latest version in the repository so instead of updating the pom.xml file, during the build, it will pick the latest on. Provided the library is backward compatible.