Mac编译dubbo失败找不到tools:jar

INFO\] ------------------------------------------------------------------------ \[INFO\] Reactor Summary for dubbo-admin 0.6.0: \[INFO

INFO\] dubbo-admin ........................................ SUCCESS \[ 2.576 s

INFO\] dubbo-admin-ui ..................................... SUCCESS \[01:18 min

INFO\] dubbo-admin-server ................................. FAILURE \[ 0.617 s

INFO\] dubbo-admin-distribution ........................... SKIPPED \[INFO\] dubbo-admin-test ................................... SKIPPED \[INFO\] ------------------------------------------------------------------------ \[INFO\] BUILD FAILURE \[INFO\] ------------------------------------------------------------------------ \[INFO\] Total time: 01:21 min \[INFO\] Finished at: 2023-12-02T20:57:35+08:00 \[INFO\] ------------------------------------------------------------------------ \[ERROR\] Failed to execute goal on project dubbo-admin-server: Could not resolve dependencies for project org.apache.dubbo:dubbo-admin-server:jar:0.6.0: Could not find artifact com.sun:tools:jar:1.8.0 at specified path /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/../lib/tools.jar -\> \[Help 1

ERROR

ERROR\] To see the full stack trace of the errors, re-run Maven with the -e switch. \[ERROR\] Re-run Maven using the -X switch to enable full debug logging. \[ERROR

ERROR\] For more information about the errors and possible solutions, please read the following articles: \[ERROR\] \[Help 1\] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException \[ERROR

ERROR\] After correcting the problems, you can resume the build with the command \[ERROR\] mvn \ -rf :dubbo-admin-server **解决方案:** 1、安装 JDK 1.8 2、vim \~/.bash_profile export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-1.8.jdk/Contents/Home 3、source \~/.bash_profile 4、mvn --projects dubbo-admin-server spring-boot:run or cd dubbo-admin-distribution/target; java -jar dubbo-admin-${project.version}.jar 5、访问http://localhost:38080 ![](https://file.jishuzhan.net/article/1731313199245955073/e2d2a429db73ecd7c66bbe24f46f06a2.webp)

相关推荐
阿巴斯甜11 小时前
UnaryOperator的使用:
java
曼岛_11 小时前
[逆向工程]160个CrackMe入门实战之Andrnalin.2解析(九)
java·数据库·microsoft·逆向
阿丰资源11 小时前
Java项目基于SpringBoot+Vue前后端分离在线商城系统(附源码)
java·vue.js·spring boot
历程里程碑11 小时前
MySQL视图:虚拟表的实战技巧
java·开发语言·数据库·c++·sql·mysql·adb
SamDeepThinking11 小时前
从DDD的仓储层反向依赖,理解DIP、IOC和DI
java·后端·架构
小Y._11 小时前
JVM垃圾回收算法与调优实战
java·jvm·性能调优·gc
喜欢流萤吖~11 小时前
Nacos 配置中心:微服务的配置管家
java·运维·微服务
逻辑驱动的ken11 小时前
Java高频面试考点场景题10
java·开发语言·深度学习·求职招聘·春招
程序员晨曦11 小时前
理解函数调用Function Call
java·运维·服务器
indexsunny11 小时前
互联网大厂Java求职面试实战:Spring Boot微服务在电商场景中的应用与挑战
java·spring boot·redis·面试·kafka·oauth2·microservices