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

 

相关文章:

  • 2022-12-23
  • 2022-03-05
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-09-25
猜你喜欢
  • 2021-07-15
  • 2022-12-23
  • 2021-05-18
  • 2021-12-29
  • 2021-07-16
  • 2021-10-31
  • 2021-05-29
相关资源
相似解决方案