将已有jar添加至本地maven仓库

官网链接:http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

比如有 commons-dbutils-1.6.jar,在该文件的目录下执行:

mvn install:install-file -Dfile=commons-dbutils-1.6.jar -DgroupId=commons-dbutils -DartifactId=commons-dbutils -Dversion=1.6 -Dpackaging=jar

即可。

原文地址:https://www.cnblogs.com/zhengbin/p/6618549.html