how to upload JAR to Nexus OSS 3?

后端 未结 3 394
梦如初夏
梦如初夏 2021-01-02 10:07

How to perform an upload of a jar via curl the Nexus 3? I tried using the link tips but without success.

Here are my attempts:

curl -v -         


        
3条回答
  •  北海茫月
    2021-01-02 10:30

    You could use nexus-cli.

    docker run -ti -v $(pwd):$(pwd):ro sjeandeaux/nexus-cli:0.2.0 \
                              -repo=http://nexus:8081/repository/maven-releases \
                              -user=admin \
                              -password=admin123 \
                              -file=$(pwd)/upload.jar \
                              -groupID=your.group \
                              -artifactID=yourArtifactID \
                              -version=0.1.0 \
                              -hash md5 \
                              -hash sha1
    

提交回复
热议问题