1、部署到远程(把本地库指定jar上传到中央库)
mvn deploy:deploy-file -DgroupId=com.zhongan -DartifactId=zaOpenapiSdk -Dversion=0.0.1 -Dpackaging=jar -Dfile=C:/Users/Administrator/Desktop/tmp/zaOpenapiSdk-0.0.1.jar -DrepositoryId=central -Durl=http://bb.com/artifactory/libs-release-local

2、安装到本地(把指定的jar安装到本地库)
mvn install:install-file -Dfile=C:/Users/aaa/Desktop/zaOpenapiSdk-0.0.1.jar -DgroupId=com.zhongan -DartifactId=zaOpenapiSdk -Dversion=0.0.1 -Dpackaging=jar

3、拷贝到本地指定路径中(从本地库或者中央库拷贝)
mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:copy -Dartifact=com.zhongan:zaOpenapiSdk:0.0.1:jar -DoutputDirectory=C:/Users/aaa/Desktop/tmp/

4、从指定远程仓库下载jar到指定路径

mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:copy -DartifactId=device-service -Dversion=0.0.74.5 -Dpackaging=jar -Dfile=C:/Users/Administrator/Desktop/tmp/zaOpenapiSdk-0.0.1.jar -DrepositoryId=central -Durl=http://bb.com/artifactory/libs-release-local

 

相关文章:

  • 2022-02-01
  • 2022-12-23
  • 2021-04-06
  • 2021-09-17
  • 2021-10-18
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-07-15
相关资源
相似解决方案