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

相关推荐
陈皮波比茶13 小时前
Swagger
java
小闫BI设源码13 小时前
Elasticsearch面试必看:如何让客户端精准选择节点高效执行请求?
java·elasticsearch·面试宝典·深入解析
摇滚侠14 小时前
《SpringBoot 3:入门与应用实战》第 5 章 使用 Spring Boot 阅读笔记 9
java·spring boot·笔记
进阶的小名14 小时前
Spring AI 2.0 探索:多 OpenAI-Compatible 模型接入,以及下一代 Session 记忆管理
java·人工智能·后端·gpt·spring·ai·chatgpt
yaoxin52112314 小时前
503. Java 反射 - 编写 ServiceFactory 类
java·开发语言·python
考虑考虑15 小时前
Java三元表达式注意
java·后端·java ee
Likeadust15 小时前
应急调度看不清位置?集群对讲调度系统EasyDSS集群对讲调度室上线可配置地图
dubbo
程序员小八77715 小时前
Java 快速转 Go
java·python·golang
职场的momo16 小时前
11个后端与AI岗位同时开放:Java、网关、推理优化怎么匹配
java·开发语言·人工智能
罗超驿16 小时前
SpringMVC 请求参数接收详解|单个参数、多参数、对象参数、@RequestParam参数重命名
java·后端·postman·javaee