使用browser / wget从Nexus OSS 3.0.0-03下载工件

时间:2016-06-29 18:37:01

标签: maven repository nexus sonatype nexus3

我有本地安装的Nexus OSS 3.0.0-03。

我可以上传快照和发布jar。

现在我想通过浏览器或wget下载这些jar,但我似乎无法找到REST API调用(例如在Jenkins执行的shell脚本中)。

在版本3之前,似乎可以使用以下内容: http://MY_REPOSITORY/nexus/service/local/artifact/maven/content?r=repoId&g=groupName&a=art&v=LATEST

有关如何使用版本3执行此操作的任何想法?

1 个答案:

答案 0 :(得分:0)

如果您正在寻找最新消息,可以在此处找到答案:Sonatype Nexus 3 - get latest snapshot

这在Nexus Repository 3中尚不存在,但随着我们改进REST API,它将在不久的将来出现。

但是,如果您想下载工件并知道它的坐标,可以通过使用这里的模式构建URL作为有用的工具来实现:https://cwiki.apache.org/confluence/display/MAVEN/Remote+repository+layout#Remoterepositorylayout-Repositoryartifactlayout