My setup is a jenkins that polls my git repo and does publish to a nexus repo on each push. Then I have a downstream project that takes this artifact and deploys it to a test server. This project is using artifact resolver plugin for jenkins and just uses "LATEST" as version.
What I notice is the following. After I have published a new snapshot the metadata is only updated in the specific version folder. The specific version metadata is correct:
<metadata modelVersion="1.1.0">
<groupId>se.uniply</groupId>
<artifactId>dfkka_2.10</artifactId>
<version>1.2.7-SNAPSHOT</version>
<versioning>
<lastUpdated>20130524112854</lastUpdated>
</versioning>
</metadata>
https://repo.woodenstake.se/content/repositories/snapshots/se/uniply/dfkka_2.10/maven-metadata.xml
shows an old timestamp:
<metadata modelVersion="1.1.0">
<groupId>se.uniply</groupId>
<artifactId>dfkka_2.10</artifactId>
<versioning>
<latest>1.2.7-SNAPSHOT</latest>
<release/>
<versions>
<version>1.2.7-SNAPSHOT</version>
</versions>
<lastUpdated>20130523200733</lastUpdated>
</versioning>
</metadata>
Therefore artifact resolver doesn't download the latest version but just uses the cached one from a local directory. Why doesn't Nexus update the version? Is there any setting I missed?
More info:
I'm using sbt 12.2 with publish plugin (ivy under the hood).