我有一个Sonatype Nexus实例启动并运行,需要编写脚本来手动下载特定的工件.
我尝试使用REST API和wget:
wget --user=username --password=password http://:/nexus/service/local/artifact/maven/content?g=&a=&v=&r=snapshots
Resolving
Connecting to ... Failed: Connection refused.
Connecting to ... connected.
HTTP request sent,awaiting response... 401 Unauthorized
Reusing existing connection to :.
HTTP request sent,awaiting response... 400 Bad Request
2014-05-11 20:17:01 ERROR 400: Bad Request.
有谁知道,如何让这个工作?
编辑:我可以使用浏览器下载工件(并登录到web界面)