11
我已啓動並運行Sonatype Nexus實例,需要編寫腳本以手動下載特定的工件。如何從Sonatype Nexus使用wget下載工件
我嘗試使用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.
有誰知道,如何得到這個工作?
編輯:我可以用我的瀏覽器下載神器(和被記錄到webinterface)
是否有一個爲powershell?我在ps上得到了這個,Invoke-WebRequest:找不到接受參數'--password = admin123'的位置參數。這裏是命令:wget --user = admin --password = admin123「http://ec2-54-299-XX-231.us-west-2.compute.amazonaws。 com:8081/nexus/service /本地/僞像/行家/內容?克=組織&一個= FOO&v = 1.0&R =釋放」 – OK999