IDEA中跑一个Maven项目,在install的时候报错:说我的包不存在
案例一:

接着搜索:

去中央仓库搜索:

进入命令行:

将本地的jar包引入到项目中:

这样就成功了。
命令规则是这样的:
mvn install:install-file -Dfile=C:\Users\86177\Downloads\core-3.2.1.jar -DgroupId=com.google.zxing -DartifactId=core -Dversion=3.2.1 -Dpackaging=jar

案例二:




修改命令:mvn install:install-file -Dfile=C:\Users\86177\Downloads\hutool-all-5.3.5.jar -DgroupId=cn.hutool -DartifactId=hutool-all -Dversion=5.3.5 -Dpackaging=jar

重新install

浙公网安备 33010602011771号