You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring Pulsar文档提及的spring-pulsar-test依赖未在Maven Central找到

Spring Pulsar Test依赖找不到的解决办法
  • 该依赖已正式发布,找不到的原因通常是以下几点:
    1. 版本不匹配:spring-pulsar-test是从Spring Pulsar 2.0.0版本开始作为独立模块发布的,如果你使用的是2.0.0之前的版本,这个依赖不存在。请确认你的Spring Pulsar版本是否≥2.0.0,比如在Gradle中指定版本:
      testImplementation "org.springframework.pulsar:spring-pulsar-test:2.1.0"
      
    2. 仓库配置缺失:确保你的Gradle构建脚本中配置了Maven中央仓库,没有的话添加:
      repositories {
          mavenCentral()
      }
      
    3. 快照版本需要额外仓库:如果使用的是快照版本(比如2.2.0-SNAPSHOT),还需要添加Spring的快照仓库:
      repositories {
          mavenCentral()
          maven { url 'https://repo.spring.io/snapshot' }
      }
      
    4. 坐标拼写错误:检查依赖坐标是否准确,正确的坐标是org.springframework.pulsar:spring-pulsar-test,不要写错groupId或artifactId。

内容的提问来源于stack exchange,提问作者menapole

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.25 12:03:10