gpt4 book ai didi

maven - maven 构建中的未知主机异常 nexus.codehaus.org

转载 作者:行者123 更新时间:2023-12-04 21:38:23 24 4
gpt4 key购买 nike

我正在构建 Apache Ignite 项目 http://github.com/apache/ignite .

其中一个 maven pom.xml 指的是 codehaus exec-maven-plugin 。请注意,codehaus 现在作为一家公司已不复存在。

插件本身是否有链接到 http://nexus.codehaus.org 的内容?存储库?考虑运行时的错误消息

 mvn clean package 

在那个项目上:
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-
plugin:1.3.2:java (default) on project ignite-core: Execution
default of goal org.codehaus.mojo:exec-maven-plugin:1.3.2:java failed:
Plugin org.codehaus.mojo:exec-maven-plugin:1.3.2 or one of its
dependencies could not be resolved: Could not transfer artifact
org.apache.ignite:ignite-tools:jar:1.4.1-SNAPSHOT from/to
codehaus-snapshots (http://nexus.codehaus.org/snapshots/):
nexus.codehaus.org: Unknown host nexus.codehaus.org -> [Help 1]

这是 pom.xml 的片段:
        <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.9.1</version>
<executions>
<execution>
<id>add-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>schema-import/src/main/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>

注意:我并不完全确定错误是由 codehaus mojo 插件引起的。鉴于这是项目中对 codehaus 的唯一引用,因此仅在此处注明。

最佳答案

Codehaus 已经关门了。插件的新家是:http://www.mojohaus.org/ .特别是对于 exec-maven-plugin .源码可见:https://github.com/mojohaus/exec-maven-plugin/ .除此之外,引用 SNAPSHOT 存储库的项目完全是错误的。您的 pom 或 ignite 项目中是否引用了 codehaus 存储库?

关于maven - maven 构建中的未知主机异常 nexus.codehaus.org,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32448768/

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