将jar包发布到本地maven仓库
项目中在对接第三方服务时经常需要引用第三方的jar包依赖,比如腾讯的短信服务https://cloud.tencent.com/document/product/382/13613这种场景还是非常多的,如何将第三方的jar包发布到本地,This is a question 现以发布腾讯的短信服务SDK为例子,发布到本地仓库 下载腾讯短信服务源代码 编译源代码,生成jar包mvn package 发布该jar包到本地maven仓库 $ mvn install:install-file -Dfile=C:\Users\11851\Downloads\qcloudsms_java-1.0.4\qcloudsms_java-1.0.4\target\qcloudsms-1.0.4.jar -DgroupId=com.github.qcouldsms -DartifactId=qcloudsms -Dversion=1.0.4 -Dpackaging=jar 坑 之前发布了多次都失败了查看报错信息发现 The specified file 'C:\Users\11851\Downloads\qc...