If you always want to use the newest version, Maven has two keywords you can use as an alternative to version ranges.
You can use LATEST or RELEASE keywords.LATEST refers to the latest released or snapshot version of a particular artifact, the most recently deployed artifact in a particular repository. RELEASE refers to the last non-snapshot release in the repository.
Hope this helps!!
To know more about Java, join our Java course online today.