将jar包用命令行添加到本地maven仓库中
maven官网下载jar包使用命令行添加jar包注意事项参考文章
maven官网下载jar包
maven官网 找到需要的jar包,点击jar下载
使用命令行添加jar包
1、在jar包所在目录打开cmd 2、输入命令 mvn install:install-file -Dfile=jar包的路径 -DgroupId=gruopId中的内容 -DartifactId=actifactId的内容 -Dversion=version的内容 -Dpackaging=jar 3、示例:以easy-rules-core-4.0.0为例 mvn install:install-file -Dfile=easy-rules-core-4.0.0.jar -DgroupId=org.jeasy -DartifactId=easy-rules-core -Dversion=4.0.0 -Dpackaging=jar 4、出现以下页面则表明添加成功
注意事项
1、cmd命令所使用的maven是环境变量中所配置的maven 2、maven本地库路径不能包含空格,否则会添加失败
参考文章
https://www.cnblogs.com/think-world/p/12229763.html