How do I provide URL access to the latest snapshot of an artifact in Nexus 2.x?

前端 未结 4 1975
陌清茗
陌清茗 2020-12-23 16:17

I would like to provide a simple URL that will always return the latest version of a snapshot version of an artifact. By simple I mean that the URL doesn\'t change, or requ

4条回答
  •  -上瘾入骨i
    2020-12-23 17:08

    If you're looking for the latest version of a snapshot, just asking for say, "1.0-SNAPSHOT" will return the latest version of that artifact's snapshot.

    If you're looking for "latest version" however, the "v=LATEST" syntax will work, but keep in mind that this keyword can return the latest version of that snapshot you're looking for, or the release that just completed, or that OTHER branch of that same artifact that is a version ahead and still at "-SNAPSHOT".

    If you're looking for the absolute latest then yeah, use the "v=LATEST". If you're looking for the latest release, you can also ask for "v=RELEASE". If you have a grouping of repos, you can reference both snapshot repos and release repositories by adding to the url something like:

    "...v=RELEASE&r=public"

    That should search across all your "grouped" repos.

提交回复
热议问题