How to add a jar, source and Javadoc to the local Maven repository?

前端 未结 3 804
你的背包
你的背包 2021-01-30 08:52

I\'m wanting to add the latest version of JGoodies Forms (1.5.0) as a dependency, but I can\'t find anything newer than 1.0.5 in the main repository, so if I understand correctl

3条回答
  •  攒了一身酷
    2021-01-30 09:37

    Here is the syntax to deploy the binary, the sources and the javadoc with a single command:

    mvn deploy:deploy-file \
        -DgroupId=com.jgoodies \
        -DartifactId=jgoodies-forms \
        -Dversion=1.6.0 \
        -Dfile=jgoodies-forms-1.6.0.jar \
        -Dsources=jgoodies-forms-1.6.0-sources.jar \
        -Djavadoc=jgoodies-forms-1.6.0-javadoc.jar \
        -Durl=file://path/to/your/local/repository
    

提交回复
热议问题