Is there a way to tell maven to pick the latest version of a jar as long as major version remains the same? For example, instead of the following:
<dependency>
<groupId>com.example</groupId>
<artifactId>example-java-sdk</artifactId>
<version>1.0.1</version>
</dependency>
I'd like to use the following:
<dependency>
<groupId>com.example</groupId>
<artifactId>example-java-sdk</artifactId>
<version>1.*</version>
</dependency>
Or:
<dependency>
<groupId>com.example</groupId>
<artifactId>example-java-sdk</artifactId>
<version>1</version>
</dependency>
That way, I can update the minor version or revision without having to ask everyone to change their dependencies. The latest jar (with the same major version) will be picked up the next time they rebuild their application.