maven命令发布、安装和下载指定jar文件
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