Maven:第二章:去中央仓库下载包到本地引入依赖到项目中

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

 

posted @ 2019-05-11 21:50  javawxid  阅读(29)  评论(0编辑  收藏  举报