2017-05-18 55 views

回答

0

使用curl:

curl -X POST 'http://<HOST>:<PORT>/restServices/archivaServices/repositoriesService/deleteArtifact' -H 'Authorization: Basic <BASE64LOGIN>' -H 'Content-Type: application/json' -H 'Accept: application/json' --data-binary <ARTIFACTJSON> --compressed 

其中

<BASE64LOGIN>是底座64編碼的字符串 「用戶:密碼」。

<ARTIFACTJSON>是.pom工件中找到的JSON:

http://<HOST>:<PORT>/restServices/archivaServices/browseService/artifactDownloadInfos/<groupID>/<artifactId>/<artifactVersion> 
相關問題