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