redisson安装出问题

一直报错,用的3.10.0版本


Description:

An attempt was made to call the method org.redisson.api.RTopic.addListener(Lorg/redisson/api/listener/MessageListener;)I but it does not exist. Its class, org.redisson.api.RTopic, is available from the following locations:

    jar:file:/Users/xiaogu/.m2/repository/org/redisson/redisson/3.10.0/redisson-3.10.0.jar!/org/redisson/api/RTopic.class

It was loaded from the following location:

    file:/Users/xiaogu/.m2/repository/org/redisson/redisson/3.10.0/redisson-3.10.0.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.redisson.api.RTopic
阅读 3.6k
2 个回答

目测是下载失败了。去/Users/xiaogu/.m2/repository/org/redisson/redisson/这里,删除下面全部文件。重新编译

看起来像是依赖没有下载完全,可以考虑两种方式试试
1,如 @Tyrael 所说,把 repository 里面的内容删除
2,使用如下命令在项目目录运行

mvn compile dependency:purge-local-repository
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题