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)

相关推荐
程序员岳焱43 分钟前
深度剖析:Spring AI 与 LangChain4j,谁才是 Java 程序员的 AI 开发利器?
java·人工智能·后端
都叫我大帅哥1 小时前
AQS(AbstractQueuedSynchronizer)深度解剖:从“奶茶店排队”到源码级设计哲学
java
斯奕sky_small-BAD1 小时前
C++ if语句完全指南:从基础到工程实践
java·开发语言·php
云之渺1 小时前
125java
java
都叫我大帅哥1 小时前
Java ReentrantLock:从“舔狗式等待”到源码级征服指南
java
程序员岳焱1 小时前
Java 高级泛型实战:8 个场景化编程技巧
java·后端·编程语言
钢铁男儿1 小时前
C# 类和继承(扩展方法)
java·servlet·c#
饮长安千年月1 小时前
JavaSec-SpringBoot框架
java·spring boot·后端·计算机网络·安全·web安全·网络安全
移动开发者1号1 小时前
Android 大文件分块上传实战:突破表单数据限制的完整方案
android·java·kotlin
代码匠心1 小时前
从零开始学Flink:揭开实时计算的神秘面纱
java·大数据·后端·flink