i am trying to use the download api to get the latest version of a release but it looks like the artifact that i am getting is the first on the list and not the latest. nexus version is OSS 3.25.1-04 .
We are running version 3.38.0-01 and using the search API we get another version on each request.
It looks like it is paging the versions and returning the next on each request.
Is there a variable to only and always return the latest snapshot version?
We too are having problems with this. Ditto Wouter’s version, we are also on v3.38.0-01 and I have also tried all the combinations of path params that Daniel mentioned with no success. It always pulls the first version built. I recall seeing a bug report that this had been fixed in an earlier version, but it appears to have crept back in? Any chance you can help us with this? It has caused some lost effort in determining that our deployment process had pulled the oldest version and not the newest. Appreciate any insight.
In out test example, we had a bunch of 16 snapshot versions of the same artifact (all of them generated within one day). My observation (with simply sort=version as mentioned in the API for getting the latest version) called in a loop most of the time (18 out of 20 times) gave the artifact #13 (not #16, as I wold have needed). Once I got #11.