Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Api 从Nexus下载工件_Api_Maven_Curl - Fatal编程技术网

Api 从Nexus下载工件

Api 从Nexus下载工件,api,maven,curl,Api,Maven,Curl,我试图使用curl或wget下载nexus/maven工件,但我总是得到一个“403-禁止” 网址: 我尝试使用以下ip地址,但它不接受凭据。用户已存在,密码正确,并且可以访问存储库。用户是否需要特殊要求 curl -X GET -u user:password $URL 或者有没有办法将api访问键与curl一起使用?我正在使用Nexus2.11.3 谢谢。用户帐户没有这样做的权限。请与您的Nexus管理员联系。您需要包含-O参数才能下载 curl -X GET -u user:passwo

我试图使用curl或wget下载nexus/maven工件,但我总是得到一个“403-禁止”

网址:

我尝试使用以下ip地址,但它不接受凭据。用户已存在,密码正确,并且可以访问存储库。用户是否需要特殊要求

curl -X GET -u user:password $URL
或者有没有办法将api访问键与curl一起使用?我正在使用Nexus2.11.3


谢谢。

用户帐户没有这样做的权限。请与您的Nexus管理员联系。

您需要包含-O参数才能下载

curl -X GET -u user:password $URL -O
如果您不希望密码显示在历史记录中。这将提示输入密码

curl -X GET -u user $URL -O

您知道需要哪些权限吗?我尝试了管理员帐户,但它也不能使用该帐户。@bert2002,post-curl详细日志和Nexus的调试输出。你的设置一定有问题,我可以解决。需要角色“Nexus开发者角色”才能访问它。在将其添加到用户之后,它工作了。谢谢你给我指明了正确的方向。