Maven:第二章:去中央倉庫下載包到本地引入依賴到項(xiàng)目中
IDEA中跑一個Maven項(xiàng)目,在install的時候報(bào)錯:說我的包不存在
案例一:

接著搜索:

去中央倉庫搜索:

進(jìn)入命令行:

將本地的jar包引入到項(xiàng)目中:

這樣就成功了。
命令規(guī)則是這樣的:
?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



個人中心
退出



分類導(dǎo)航