Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.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
Bash Nexus3:获取所有上传到原始存储库的文件列表_Bash_Rest_Curl_Nexus - Fatal编程技术网

Bash Nexus3:获取所有上传到原始存储库的文件列表

Bash Nexus3:获取所有上传到原始存储库的文件列表,bash,rest,curl,nexus,Bash,Rest,Curl,Nexus,我们正在使用nexus 3.0 我使用curl将文件上传到原始存储库,如文档中所示: 我试着用: curl-u登录:pwhttps://mynexus/myrepo curl-u登录:pwhttps://mynexus/myrepo/ 但是只接收有错误的html 如何使用curl查询所有上传的文件 curl 'http://localhost:8081/nexus/service/extdirect' -H 'Content-Type: application/json' -H 'Accept

我们正在使用nexus 3.0
我使用
curl
将文件上传到原始存储库,如文档中所示:

我试着用:
curl-u登录:pwhttps://mynexus/myrepo

curl-u登录:pwhttps://mynexus/myrepo/

但是只接收有错误的html

如何使用
curl
查询所有上传的文件

curl 'http://localhost:8081/nexus/service/extdirect' -H 'Content-Type: application/json' -H 'Accept: */*' --data-binary '{"action":"coreui_Component","method":"readAssets","data":[{"page":1,"start":0,"limit":300,"sort":[{"property":"name","direction":"ASC"}],"filter":[{"property":"repositoryName","value":"repo_raw"}]}],"type":"rpc","tid":15}' --compressed
像这样的工作

类似这样的方法很有效

您可以使用:

例如:

curl -u admin:admin123 -X GET 'http://localhost:8081/service/rest/v1/search?repository=maven-central&group=org.osgi'
您可以使用:

例如:

curl -u admin:admin123 -X GET 'http://localhost:8081/service/rest/v1/search?repository=maven-central&group=org.osgi'