Skip to content
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

【bug】druid从1.2.4升级到1.2.6,导致maven依赖错误 #32

Closed
mjkohoh opened this issue Sep 8, 2021 · 1 comment
Closed

【bug】druid从1.2.4升级到1.2.6,导致maven依赖错误 #32

mjkohoh opened this issue Sep 8, 2021 · 1 comment

Comments

@mjkohoh
Copy link

mjkohoh commented Sep 8, 2021

运行环境

  • Ruoyi-Vue版本:3.6.0
  • maven版本:3.8.2
  • java版本:1.8.0_302

出现的问题

运行mvn package,提示maven依赖错误,错误内容如下:

 Could not resolve dependencies for project com.ruoyi:ruoyi-framework:jar:3.5.0: The following artifacts could not be resolved: com.sun:tools:jar:1.8, com.sun:jconsole:jar:1.8: Could not find artifact com.sun:tools:jar:1.8 at specified path /home/mj/.m2/repository/com/alibaba/druid/1.2.6/lib/openjdk-1.8-tools.jar

问题原因

我将版本切换到v3.4.0之后就可以顺利编译了。比较v3.4.0和之后的版本,发现druid从1.2.4升级到1.2.6。之后我将druid的版本改为1.2.4之后就可以顺利编译了。因此我认为这是升级druid导致的问题。

解决方案

暂时除了降低druid的版本号外,还没有找到更好的办法。希望有人可以解决这个问题,欢迎大家探讨。

@yangzongzhuan
Copy link
Owner

druid的问题,你可以用1.2.5或者试试最新版本的1.2.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants