gpt4 book ai didi

Maven 依赖 picocontainer

转载 作者:行者123 更新时间:2023-12-04 03:44:22 30 4
gpt4 key购买 nike

我正在尝试包含

的 maven 依赖项
<dependency>
<groupId>org.jacorb</groupId>
<artifactId>jacorb</artifactId>
<version>2.3.1</version>
</dependency>

依赖已解决,但它导致另一个依赖 picocontainer 出现问题:

[ERROR] Failed to execute goal on project s_s: Could not resolve dependencies 
for project my.package:s_s:war:1: Failed to collect dependencies for org.jacorb:jacorb:jar:2.3.1 (compile), picocontainer:picocontainer:jar:1.2 (compile)]: Failed to read artifact descriptor for picocontainer:picocontainer:jar:${picocontainer.version}: Could not transfer artifact picocontainer:picocontainer:pom:${picocontainer.version} from/to central (http://repo.maven.apache.org/maven2): IllegalArgumentException: Illegal character in path at index 65: http://repo.maven.apache.org/maven2/picocontainer/picocontainer/${picocontainer.version}/picocontainer-${picocontainer.version}.pom -> [Help 1]

当我检查本地仓库时,创建了名为 ${picocontainer.version} 的版本。我试过包含自己的依赖项:

<dependency>
<groupId>picocontainer</groupId>
<artifactId>picocontainer</artifactId>
<version>1.2</version>
</dependency>

但它没有帮助,有人可以帮助我吗?

最佳答案

好的,我想通了 :) 我应该像这样从 org.jacorb 中排除依赖:

<dependency>
<groupId>org.jacorb</groupId>
<artifactId>jacorb</artifactId>
<version>2.3.1</version>
<exclusions>
<exclusion>
<groupId>picocontainer</groupId>
<artifactId>picocontainer</artifactId>
</exclusion>
<exclusion>
<groupId>picocontainer</groupId>
<artifactId>picocontainer-tck</artifactId>
</exclusion>
<exclusion>
<groupId>picocontainer</groupId>
<artifactId>picocontainer-gems</artifactId>
</exclusion>
</exclusions>
</dependency>

并包括必要的

    <dependency>
<groupId>picocontainer</groupId>
<artifactId>picocontainer</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>picocontainer</groupId>
<artifactId>picocontainer-tck</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>picocontainer</groupId>
<artifactId>picocontainer-gems</artifactId>
<version>1.2</version>
</dependency>

我猜这是 maven 损坏的 Artifact ?

关于Maven 依赖 picocontainer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15234451/

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