无法在 Nexus 2 中使用 CURl 上传
Not able to upload using CURl in nexus 2
执行以下命令时:-
--- curl -v -u admin:admin123 --upload-file "/f/docs/java/FileUploadApplet.jar" http://localhost:8081/nexus/File/FileUploadApplet.jar ---
无法上传工件,出现以下错误:-
< HTTP/1.1 405 HTTP method PUT is not supported by this URL
< Date: Mon, 30 Jul 2018 12:49:49 GMT
< Server: Nexus/2.14.9-01
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Content-Length: 0
* HTTP error before end of send, stop sending
得到答案-
curl -v -u admin:admin123 --upload-file /f/java/File.jar http://localhost:8081/nexus/content/repositories/releases/file/File.jar
执行以下命令时:-
--- curl -v -u admin:admin123 --upload-file "/f/docs/java/FileUploadApplet.jar" http://localhost:8081/nexus/File/FileUploadApplet.jar ---
无法上传工件,出现以下错误:-
< HTTP/1.1 405 HTTP method PUT is not supported by this URL
< Date: Mon, 30 Jul 2018 12:49:49 GMT
< Server: Nexus/2.14.9-01
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Content-Length: 0
* HTTP error before end of send, stop sending
得到答案-
curl -v -u admin:admin123 --upload-file /f/java/File.jar http://localhost:8081/nexus/content/repositories/releases/file/File.jar