Start a Nexus3 server:
docker run --rm -d -p 9000:8081 sonatype/nexus3:3.16.0
Upload artifacts once it has been started:
./multipart -url \
http://localhost:9000/service/rest/v1/components?repository=maven-releases \
-user admin -pass admin123 -F \
"maven2.asset1=@test/testdata/file1.pom,\
maven2.asset1.extension=pom,\
maven2.asset2=@test/testdata/file1.jar,\
maven2.asset2.extension=jar,\
maven2.asset3=@test/testdata/file1.war,\
maven2.asset3.extension=war,\
maven2.asset4=@test/testdata/file1.ear,\
maven2.asset4.extension=ear,\
maven2.asset5=@test/testdata/file1-sources.jar,\
maven2.asset5.classifier=sources,\
maven2.asset5.extension=jar"