简体   繁体   中英

Sonatype Nexus: Unexpected value of <latest> tag in “maven-metadata.xml”

I'm using Sonatype Nexus v2.3.1-01 and I've got a problem with the value of the <latest> tag. I thought this value would become updated every time I upload a newer version of an artifact.

Now I had a look at the <latest> values for a couple of artifacts that all have had new versions deployed to Nexus yesterday . Result:

  • <latest> fields of some artifacts hold version values from yesterday (what I expected)
  • <latest> fields of some artifacts hold values a bit older (couple of days)
  • <latest> fields of some artifacts hold values a month old or even older

So I guess there's either something wrong about my understanding of this tag or something's wrong about by setup/configuration. Any ideas?

Thanks, Christian

The Nexus FAQ describes when LATEST/RELEASE is set. Latest is only used (and updated) for maven plugins.

"LATEST" only works reliably with group repos. See - http://www.blackpepper.co.uk/posts/nexus-support-for-latest-version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM