上传第三方jar包至maven私服,以geotools为例

上传jar包(模块打包方式为jar)

mvn deploy:deploy-file -DgroupId=org.geotools -DartifactId=gt-api -Dversion=10.3 -Dpackaging=jar -Dfile=C:UsersNihaorzDesktopgeotoolsgt-api10.3gt-api-10.3.jar -Durl=http://192.168.100.154:8081/repository/geostack-releases/ -DrepositoryId=releases -DpomFile=C:UsersNihaorzDesktopgeotoolsgt-api10.3gt-api-10.3.pom

上传pom(模块打包方式为pom)

mvn deploy:deploy-file -DgroupId=org.geotools -DartifactId=geotools -Dversion=10.3 -Dpackaging=pom -Dfile=C:UsersNihaorzDesktopgeotoolsgeotools10.3geotools-10.3.pom -Durl=http://192.168.100.154:8081/repository/geostack-releases/ -DrepositoryId=releases
原文地址:https://www.cnblogs.com/nihaorz/p/7722547.html