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

Maven仓库显示存在但无法安装ambit2-core依赖的问题

解决ambit:ambit2-core:2.4.9依赖无法解析的问题

方案1:添加专属Maven仓库

该构件未发布到Maven中央仓库,需要配置Ambit项目的官方仓库。在你的pom.xml中添加以下仓库配置:

<repositories>
    <repository>
        <id>ambit-repo</id>
        <url>https://ambit.uni-plovdiv.bg/maven</url>
    </repository>
</repositories>

添加完成后重新执行mvn -U install,Maven会从该仓库拉取依赖。

若需要全局生效,可在Maven的settings.xml(通常位于用户目录下的.m2/settings.xml或Maven安装目录的conf/settings.xml)中添加如下配置:

<settings>
    <profiles>
        <profile>
            <id>ambit-profile</id>
            <repositories>
                <repository>
                    <id>ambit-repo</id>
                    <url>https://ambit.uni-plovdiv.bg/maven</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>ambit-profile</activeProfile>
    </activeProfiles>
</settings>

方案2:手动安装到本地Maven仓库

如果无法访问上述仓库,可先获取ambit2-core-2.4.9.jar文件,再执行以下Maven命令将其安装到本地仓库:

mvn install:install-file -Dfile=ambit2-core-2.4.9.jar -DgroupId=ambit -DartifactId=ambit2-core -Dversion=2.4.9 -Dpackaging=jar

注意替换命令中的ambit2-core-2.4.9.jar为你实际的jar文件路径。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.26 15:32:32