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)

相关推荐
不穿铠甲的穿山甲11 分钟前
gradle-tasks.register(‘classesJar‘, Jar)解析
android·java·gradle·groovy
学了就忘23 分钟前
Axios 传参与 Spring Boot 接收参数完全指南
java·spring boot·后端·vue
漂流瓶66666631 分钟前
如何在idea中写spark程序
java·spark·intellij-idea
冼紫菜33 分钟前
[特殊字符] SpringCloud项目中使用OpenFeign进行微服务远程调用详解(含连接池与日志配置)
java·后端·spring cloud
oioihoii39 分钟前
C++23文本编码革新:迈向更现代的字符处理
java·数据库·c++23
Seven971 小时前
记录一次线上问题排查:JDK序列化问题
java
风象南1 小时前
SpringBoot中4种登录验证码实现方案
java·spring boot·后端
giao源1 小时前
JAVA实现将富文本内容插入已有word文档并下载(dock4j+jsoup)
java·开发语言·word
努力也学不会java1 小时前
【网络原理】 网络编程套接字
java·开发语言·网络·网络协议·tcp/ip·php
_一条咸鱼_1 小时前
破茧成蝶!深度剖析 Android Button 底层运作奥秘
android·java·面试