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

相关推荐
Mr-Wanter43 分钟前
wsl2 jdk管理工具之sdkman
java·开发语言·sdkman
唐青枫1 小时前
Java Future 与 CompletableFuture 实战指南:从异步结果到任务编排
java
长孙豪翔1 小时前
在.net中读写config文件的各种方法
java·数据库·.net
tachibana21 小时前
hot100 回文链表(234)
java·网络·数据结构·leetcode·链表
可乐ea1 小时前
【Java八股|第10篇】Java 中的包装类和自动拆装箱
java·面试题·包装类·java八股
zfoo-framework2 小时前
mongo最佳实战(from mongo中文社区)
java
深盾科技_Virbox2 小时前
加密狗授权能力选型:从授权模型到全生命周期管理
java·网络·数据库
iPad协议个微协议3 小时前
企业微信文件上传下载在自动化系统中的处理方式
java·运维·人工智能·机器人·自动化·企业微信
. . . . .3 小时前
Egg框架深入
java·开发语言
RainCity3 小时前
Java Swing 自定义组件库分享(十三)
java·笔记·后端