gpt4 book ai didi

Maven - 无法解析 Artifact - cglib :cglib-nodep:jar:null

转载 作者:行者123 更新时间:2023-12-01 09:26:56 24 4
gpt4 key购买 nike

我正在尝试构建一个大型项目,但由于以下错误而失败:

[INFO] ------------------------------------------------------------------------
[INFO] Building Utilities
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1255 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 16 resources
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Couldn't find a version in [2.2.2] to match range [2.1_3,2.1_3]
cglib:cglib-nodep:jar:null

from the specified remote repositories:
java.net (http://download.java.net/maven/2),
internal (http://repo.some-project.org/maven),
central (http://repo1.maven.org/maven2)

Path to dependency:
1) org.some-project:util:jar:1.5.0

found并下载了cglib-nodep-2.1_3.jar
由于我缺乏使用 maven 的经验,我不确定如何(hrr...)使构建过程使用此文件,而不是(我猜)从 Internet 获取它失败。

最佳答案

如果你把它放在 dependencyManagement 部分,而不是把它放在 dependencies 部分,它就可以工作。

<dependencyManagement>
<dependencies>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.1_2</version>
</dependency>
</dependencies>
</dependencyManagement>

所有版本都在工作。当我把它放在 dependencies 部分而不是 dependencyManagement 部分时,我遇到了同样的错误。你不需要这样做 手动。

关于Maven - 无法解析 Artifact - cglib :cglib-nodep:jar:null,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6087862/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com