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 epository***, line 31, column 25

无法连接maven官方仓库,经检查发现project的maven设置,用了maven默认setting.xml,而不是自定义的。重新修改setting.xml,使用私有仓库解决(公司内网无法直接连官方仓库)。

原文地址:https://www.cnblogs.com/tuzkee/p/13345756.html