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

相关推荐
程序员阿龙22 分钟前
基于SpringBoot的医疗陪护系统设计与实现(源码+定制+开发)
java·spring boot·后端·医疗陪护管理平台·患者护理服务平台·医疗信息管理系统·患者陪护服务平台
前 方38 分钟前
若依入门案例
java·spring boot·maven
funnyZpC42 分钟前
quartz集群增强版🎉
java·分布式·开源·集群·定时任务
阿华的代码王国1 小时前
【Spring】——SpringBoot项目创建
java·spring boot·后端·启动类·target文件
stormjun1 小时前
Java基于微信小程序的私家车位共享系统(附源码,文档)
java·微信小程序·共享停车位·私家车共享停车位小程序·停车位共享
转世成为计算机大神1 小时前
网关 Spring Cloud Gateway
java·网络·spring boot·1024程序员节
paopaokaka_luck1 小时前
基于Spring Boot+Vue的助农销售平台(协同过滤算法、限流算法、支付宝沙盒支付、实时聊天、图形化分析)
java·spring boot·小程序·毕业设计·mybatis·1024程序员节
m0_594526301 小时前
Python批量合并多个PDF
java·python·pdf
咕哧普拉啦1 小时前
乐尚代驾十订单支付seata、rabbitmq异步消息、redisson延迟队列
java·spring boot·mysql·spring·maven·乐尚代驾·java最新项目
✿゚卡笨卡1 小时前
pdf 添加页眉页脚,获取前五页
java·pdf