Skip to content

030/multipart

Repository files navigation

go-multipart

CI GoDoc Widget GitHub go.mod Go version Go Report Card StackOverflow SE Questions DevOps SE Questions ServerFault SE Questions Docker Pulls Docker Image Size (latest semver) Issues Pull requests Total downloads GitHub forks GitHub watchers GitHub stars License Repository Size Contributors Commit activity Last commit Release date GitHub release (latest SemVer) Bugs Code Smells Coverage Duplicated Lines (%) Lines of Code Maintainability Rating Quality Gate Status Reliability Rating Security Rating Technical Debt Vulnerabilities codecov GolangCI Chocolatey multipart codebeat badge Conventional Commits semantic-release

Quickstart

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"