简体   繁体   中英

schema or reference for maven-metadata.xml in maven 3 (specifically for <latest/>, <release/>)?

I see Nexus OSS repo manager (re)generating the following maven-metadata.xml and cannot find any info on what do the following properties mean (or where can i find reference to maven-metata.xml - similar to pom.xml )

  • latest - not latest by version or lastUpdated timestamp in our case. Nexus FAQ says this only applies to plugin artifacts. Is that really so? Is it benign or harmful when present in for non-plugin artifacts?
  • release - what is the significance of this property? When used for SNAPSHOT artifacts?

Artifact's maven-metadata.xml - as re-generated by Nexus:

<metadata>
  <groupId>com.castanealabs</groupId>
  <artifactId>castanealabs-config</artifactId>
  <versioning>
    <latest>10-SNAPSHOT</latest>
    <release></release>
    <versions>
      <version>1.0-SNAPSHOT</version>
      <version>7-SNAPSHOT</version>
      <version>8-SNAPSHOT</version>
      <version>10-SNAPSHOT</version>
      <version>11-SNAPSHOT</version>
    </versions>
    <lastUpdated>20120321194127</lastUpdated>
  </versioning>
</metadata>

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