Basically we have artifact-2.0.zip bundle zip file and want to upload it to Maven repository in Nexus.
This is the command:
curl -v -u nexus-user -X POST "https://nexus.tld/service/rest/v1/components?repository=maven-repo" \
-F maven2.groupId=library.group \
-F maven2.artifactId=artifact \
-F maven2.version=2.0 \
-F maven2.asset1=@artifact-2.0.zip \
-F maven2.asset1.extension=zip