我已经安装并运行了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界面)下载该构件。
您正在查找的页面不存在
。 - Boris