Sonatype Nexus 3 - get latest snapshot

前端 未结 10 1468
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-31 06:28

We\'ve just upgraded out nexus installation to the latest release (3.x). Is there any way to get the latest version of a given snapshot artifact? Nexus 2 had a nice API whic

10条回答
  •  耶瑟儿~
    2020-12-31 06:46

    Nexus 2 had a nice API which is not supported anymore.

    It sounds like you are referring to these:

    /service/local/artifact/maven/content
    /service/local/artifact/maven/redirect
    

    If you're asking to find the latest x.y.z-SNAPSHOT version where the x, y, z are guessed - Nexus never had this functionality (it worked only for plugins).

    This is simply untrue - see the following article which shows clearly you can specify LATEST, RELEASE or SNAPSHOT base versions.

    https://support.sonatype.com/hc/en-us/articles/213465488-How-can-I-retrieve-a-snapshot-if-I-don-t-know-the-exact-filename-

    It's possible but not in a 1-liner.

    Yes - unless you have a tool handy such as artifact-resolver which does uses a one line command to fetch an artifact.

提交回复
热议问题