maven 使用中報錯:
mvn verify -X
Could not resolve dependencies for project com.common:jar:2.6.5-SNAPSHOT: Failure to find com.github.whvcse:EasyCaptcha:jar:1.5.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
不能爲common項目處理依賴:“在遠程倉庫不能找到架包”已被緩存本地倉庫,中央倉庫的更新間隔期到或強制更新時重新嘗試解決
檢查文件夾中文件:
重新向本地添加
mvn install:install-file -DgroupId=com.github.whvcse -DartifactId=EasyCaptcha -Dversion=1.5.0 -Dpackaging=jar -Dfile=D:/EasyCaptcha-1.5.0.jar
再次執行mvn命令成功 BUILD SUCCESS