本地上jar命令

1、上传到jd-release

mvn deploy:deploy-file -DgroupId=com.jd.open.api -DartifactId=open-api-sdk -Dversion=2.0 -Dpackaging=jar -Dfile=
/Users/xiaolongqiang/Desktop/open-api-sdk-2.0.jar    -Durl=http://maven.yihaodian.cn/content/repositories/jd-relea
ses -DrepositoryId=jd-releases

2、上传到yihaodian-snapshots
mvn deploy:deploy-file -DgroupId=com.yihaodian.backend -DartifactId=backend-finance-portal-service-client -Dversion=1.0.4-SNAPSHOT -Dpackaging=jar -Dfile=Desktop/backend-finance-portal-service-client-1.0.4-SNAPSHOT.jar  -Durl=http://maven.yihaodian.cn/content/repositories/snapshots -DrepositoryId=yihaodian-snapshots

3、带settings文件上传到nexus仓库

C:\Users\zhangqigao>mvn deploy:deploy-file --settings D:\settings\settings.xml -DgroupId=com.yihaodian.public.test -DartifactId=public-pom-test -Dversion=1.0-SNAPSHOT -Dpackaging=pom -Dfile=D:\pom\pom.xml    -Durl=http://maven.yihaodian.cn/content/repositories/sam-snapshots -DrepositoryId=sam-snapshots

 

posted @ 2017-02-15 11:06  帅丶高高  阅读(285)  评论(0编辑  收藏  举报