项目加入本地 jar 包一般有三种方式
方法一
上传到私人远程仓库(没有试过)
方法二
install 到本地仓库
mvn install:install-file -DgroupId=自己的 groupId -DartifactId=自己的 artifactId -Dversion=自己的version -Dpackaging=jar -Dfile= jar 包地址
install 成功后就可以在 pom.xml 中按照一般的方法引入了
方案三
jar 包放在和 pom.xml 同级的 lib 文件夹下
直接在 pom.xml 中加入
<dependency>
<groupId>xxxx</groupId>
<artifactId>xxxx</artifactId>