命令行上传jar

命令:

mvn deploy:deploy-file -DgroupId=copy.maven.plugin -DartifactId=copy-maven-plugin -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=copy-maven-plugin-0.0.1-SNAPSHOT.jar -Durl=http://admin:admin123@172.56.3.242:8081/nexus/content/repositories/snapshots

说明:

基础命令:mvn deploy:deploy-file

groupID:-DgroupId=copy.maven.plugin

artifactId:-DartifactId=copy-maven-plugin

版本:-Dversion=0.0.1-SNAPSHOT

类型:-Dpackaging=jar

本地文件路径:-Dfile=copy-maven-plugin-0.0.1-SNAPSHOT.jar

服务器地址:-Durl=http://admin:admin123@172.56.3.242:8081/nexus/content/repositories/snapshots

用户名:admin

密码:admin23


mvn deploy:deploy-file -DgroupId=com.weidai.bigdata.middleware -DartifactId=magic-box -Dversion=1.0.1 -Dpackaging=jar -Dfile=/Users/YHQ/workspace/magic-box/distributed-lock/target/distributed-lock-1.0.1.jar -DrepositoryId=thirdparty -Durl=http://192.168.17.252:8081/nexus/content/repositories/thirdparty/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容