New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac apple silicon设备(M1/M2/M3)下项目启动报错,netty-resolver-dns-native-macos依赖不正确 #391
Comments
不错的建议。你比较倾向那个方案? |
方案四,理论上应该是比较完美的,开箱即用。但是由于profiles没有自动激活,导致目前要先勾上profiles配置。 |
理解。我其实有点纠结。 因为貌似不解决,也不影响功能的使用? |
是的,这个问题的优先级不高,可以在之后有空再处理这类问题。 最后感谢作者和维护者的付出:) |
个人感觉方案一和方案四都可以 方案一 不需要 版本号
|
方案一与减少依赖的这个commit有冲突,所以我认为要看作者的意思 如果取消勾选Apple Silicon的profile的情况下,执行 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
基本信息
原因
redis的间接依赖中有一个netty-resolver-dns-native-macos依赖,依赖的默认版本是x86的,不支持arrch64。
在gitee找到相同问题——Mac M1芯片启动报错
怀疑是这个commit导致这个bug再次复现
复现步骤
在idea中直接启动
报错信息
解决办法
方法一
在
yudao-spring-boot-starter-redis
包中的pom.xml
文件加上netty-all依赖方法二
修改
yudao-spring-boot-starter-redis
包中的pom.xml
文件,通过<scope>
标签控制运行与测试阶段指定arrch64版本的依赖方法三
修改
yudao-spring-boot-starter-redis
包中的pom.xml
文件,直接排除依赖,重新引入arrch64版本的依赖方法四
修改
yudao-spring-boot-starter-redis
包中的pom.xml
文件,通过修改profile属性,在macos、aarch64架构下,运行与编译阶段使用arrch64的依赖包。本人使用idea自带maven时,profile自动激活不生效,尚不清楚是否与idea的maven配置有关The text was updated successfully, but these errors were encountered: