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

相关推荐
QQ_216962909618 分钟前
Spring Boot 养老院管理系统:从入住、护理到费用结算的全流程实现(源码可领)
java·spring boot·后端
cxoptics35 分钟前
冰洲石分束器设计与应用
java
ck-joker1 小时前
M1 Pro跑LLM实测:Ollama+LangChain4j零成本本地大模型开发,比云端API快在哪?
java·语言模型
丙氨酸長鏈1 小时前
[Bukkit插件开发]手持发射器箭矢机枪 教学文档 面向Python/C#开发者入门Java与Bukkit API
java·python·c#
Nontee1 小时前
设计模式:模板方法与策略,从“每个字都认识“到能说清它们在干嘛
java·数据库·设计模式
我是唐青枫1 小时前
Java ReentrantLock 实战详解:比 synchronized 更灵活的可重入锁
java·开发语言
晨曦中的暮雨2 小时前
Virtual Thread 优化 Spring AI 阻塞式 LLM I/O:对照压测报告
java·并发·个人项目
AKA__Zas3 小时前
芝士算法(前缀和2.0)
java·数据结构·算法·leetcode·哈希算法·学习方法
caishenzhibiao3 小时前
降雨带波段点差 同花顺期货通指标
java·c语言·c#
七夜zippoe3 小时前
OpenClaw Prompt 工程:从角色设定到 Skill 封装的 Agent 输出质量方法论
java·服务器·prompt·openclaw·skill封装