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

Quarkus 3.12集成Couchbase遇依赖问题,求基础读写配置方案

Quarkus 3.12连接Couchbase依赖解析失败解决办法

问题说明

添加quarkus-couchbase 1.0.0-alpha.1依赖时遇到错误:该版本在中央仓库未找到,且本地Maven已缓存失败结果,默认不会重试。

解决步骤

  • 替换为兼容的稳定版本:1.0.0-alpha.1是早期预览版,未同步到中央仓库,且可能和Quarkus 3.12兼容性不佳。请使用适配Quarkus 3.x系列的最新稳定版,比如替换依赖版本为1.2.0(以实际兼容版本为准):
    <dependency>
      <groupId>io.quarkiverse.couchbase</groupId>
      <artifactId>quarkus-couchbase</artifactId>
      <version>1.2.0</version>
    </dependency>
    
  • 强制更新Maven依赖缓存:执行以下命令清理本地缓存并强制拉取最新依赖:
    mvn clean install -U
    
  • 添加Quarkiverse仓库(若需使用预览版):如果必须使用alpha预览版,需在pom.xml中添加Quarkiverse的官方仓库,确保Maven能找到该版本:
    <repositories>
        <repository>
            <id>quarkiverse</id>
            <url>https://maven.quarkiverse.io/repository/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>
    

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.20 19:12:34