Maven无法下载依赖

IDEA下载依赖时提示 resolving dependencies of xxx, yyy ,卡住不动

执行mvn compile命令,提示: [ERROR] 'dependencies.dependency.systemPath' for jdk.tools:jdk.tools:jar must specify an absolute path but is ${JAVA_HOME}/lib/tools.jar @ line 160, column 16

按照提示,设置JAVA_HOME,重启IDEA,可以正常打包项目,但IDEA后台任务一直卡在resolving dependencies of xxx, yyy,运行项目,抛出ClassNotFoundException,再次重启IDEA,项目可以正常运行。

猜你喜欢

转载自www.cnblogs.com/chenggang816/p/9981491.html
今日推荐