How can I download a specific Maven artifact in one command line?

前端 未结 11 879
太阳男子
太阳男子 2020-11-28 01:05

I can install an artifact by install:install-file, but how can I download an artifact?

For example:

mvn download:download-file -Dgroup         


        
11条回答
  •  难免孤独
    2020-11-28 01:25

    one liner to download latest maven artifact without mvn:

    curl -O -J -L  "https://repository.sonatype.org/service/local/artifact/maven/content?r=central-proxy&g=io.staticcdn.sdk&a=staticcdn-sdk-standalone-optimizer&e=zip&v=LATEST"
    

提交回复
热议问题