Hi,
I try to upload an artifact into a snapshot repository and I obtain :
query :
curl -X 'POST' \
'https://nexus.xxx.fr:10443/service/rest/v1/components?repository=prj-snapshot' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-H 'NX-ANTI-CSRF-TOKEN: 0.3328876436606558' \
-H 'X-Nexus-UI: true' \
-F 'maven2.groupId=ww/xx/yy/zz' \
-F 'maven2.artifactId=idartifact.zip' \
-F 'maven2.version=v1.2.3' \
-F 'maven2.generate-pom=true' \
-F 'maven2.asset1=@myfic.zip;type=application/x-zip-compressed' \
-F 'maven2.asset1.extension=zip'
[
{
"id": "*",
"message": "Upload to snapshot repositories not supported, use the maven client."
}
]
the same query with a public repository and the file is uploaded.
Can someone help me ?
thx
Michel