您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

NoSuchMethodError:com.google.common.util.concurrent.MoreExecutors.directExecutor在elasticsearchjar中发生冲突

NoSuchMethodError:com.google.common.util.concurrent.MoreExecutors.directExecutor在elasticsearchjar中发生冲突

您应该尝试查找番石榴的“旧”版本的来源,并将其全部排除一次。

查找依赖项:

mvn dependency:tree | grep guava

排除它:

<dependency>
  <groupId>org.whatever</groupId>
  <artifactId>the_lib_that_includes_guava</artifactId>
  <version>0.97</version>
  <exclusions>
    <exclusion>
      <artifactId>com.google</artifactId>
      <groupId>guava</groupId>
    </exclusion>
  </exclusions>
</dependency>

有关依赖性排除的更多信息,请参见https://maven.apache.org/guides/introduction/introduction-to- optional-and-excludes- dependencies.html。

Go 2022/1/1 18:20:17 有392人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶