Short anwser:
curl --request DELETE --write "%{http_code} %{url_effective}\\n" --user login:password --output /dev/null --silent http://maven-nexus.com/nexus/content/repositories/xyz/com.kumar/peshu/1.0.12
This will remove the GAV hole from your connection.
Note:
- The option
--write "%{http_code} %{url_effective}\\n will return you the http code and the effective URL used; idem --output /dev/null --silent hide some detailed output information, ... - I'm not quite sure, but I think you need a user login with administrator privileges on Nexus.
source share