maven錯誤總結


'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${env.JAVA_HOME}/lib/tools.jar

懷疑JAVA_HOME環境變量未設置,設置環境變量,重啟IDEA后OK

 

Non-resolvable import POM: Could not transfer artifact *** from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org] failed: Connection timed out: connect @ ***, C:\Users\***\.m2\repository\***, line 31, column 25

無法連接maven官方倉庫,經檢查發現project的maven設置,用了maven默認setting.xml,而不是自定義的。重新修改setting.xml,使用私有倉庫解決(公司內網無法直接連官方倉庫)。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM