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 <goals> -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

相关推荐
JPower_mr.g14 小时前
SmartCall v1.0.9 发布:智能体知识库上线,让 AI 客服先查资料再回答
java·ide·人工智能·macos·架构·开源·xcode
SL_staff14 小时前
破除执行黑箱:用目标地图、资源热力图与健康度看板构建可下钻的执行事实链
java·开源·全栈
骑着蜗牛撵大象32714 小时前
让 Codex 值夜班:把告警排查与巡检接成可回滚的自动化链路
android·java·运维·ai·自动化·codex·智能体
木头科技14 小时前
【AI 工程化第十八篇】Spring AI 语音 Agent 实战:实时转写、WebSocket、流式 TTS 与打断机制
java·人工智能·安全·spring·性能优化
cfm_291414 小时前
SpringPrototype作用域
java
大风起兮云飞扬丶15 小时前
Java——枚举
java·开发语言
ReStock活库15 小时前
Zephyr异步SPI调用返回后,为什么不能立即复用发送缓冲区?
java·前端·网络
微微%16 小时前
从零搭建一个java开发环境
java·idea2023·jdk17
SimonKing16 小时前
又找到一个纯Java的OCR项目,识别的格式还挺多
java·后端·程序员
lengxuenong16 小时前
区间覆盖问题 · 简明学习手册1
java·学习·算法