In Our Project Nexus is used as Jar repository and we are having the below entry in the settings.xml .
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://*.*.*.*:7003/nexus/content/groups/public</url>
</mirror>
When ever a new jar is loaded in nexus it is uploaded in the path as per the entries present in the pom.xml .
<dependency>
<groupId>com.pqr.xyz.abc</groupId>
<artifactId>xyz</artifactId>
<version>2.2.0.0.4.1</version> OR <version>LATEST<version>
</dependency>
So, if the jar is uploaded in nexus every time with a new version then the it is getting picked when we are doing the maven update for our project which is having the entry of the version as mentioned above (either the specific version or LATEST.
But if we update the same version folder in nexus with the updated jar then maven update is not picking the latest jar, it keeps the old jar in the .m2 repository even if we do force update then also.
So we think that if the jar is replaced in the same folder in nexus then it will not be updated if the folder already exists in .m2 repository?
Is there any way to take the latest jar every time even if the same folder is updating in nexus via maven update?