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)

相关推荐
进阶的猿猴2 分钟前
easyExcel实现下拉单选框和(变相的下拉多选框)
java
Ccuno3 分钟前
Java 核心类库与数据结构
java·深度学习
辣机小司3 分钟前
【踩坑记录:EasyExcel 生产级实战:策略模式重构与防御性导入导出校验指南(实用工具类分享)】
java·spring boot·后端·重构·excel·策略模式·easyexcel
better_liang3 分钟前
每日Java面试场景题知识点之-RabbitMQ消息重复消费问题
java·分布式·消息队列·rabbitmq·幂等性
醒过来摸鱼4 分钟前
Spring Cloud Gateway
java·spring·spring cloud
2501_944441755 分钟前
Flutter&OpenHarmony商城App消息通知组件开发
java·javascript·flutter
we1less5 分钟前
[audio] AudioTrack (四) getOutputForAttr 分析
android·java
计算机毕设指导68 分钟前
基于微信小程序的博物馆文创系统【源码文末联系】
java·spring boot·微信小程序·小程序·tomcat·maven·intellij-idea
后端小张14 分钟前
【JAVA 进阶】Spring Boot自动配置详解
java·开发语言·人工智能·spring boot·后端·spring·spring cloud
郝学胜-神的一滴14 分钟前
Python面向对象编程:解耦、多态与魔法艺术
java·开发语言·c++·python·设计模式·软件工程