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

标签 maven

我正在构建 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/

相关文章:

maven - 是否可以将 maven-release-plugin 与特定版本一起使用?

java - 如何创建我自己的 Apache Camel Quickfixj 组件分支?

xml - 在 pom.xml 中包含另一个 xml 文件

maven - 在Maven构建期间如何从属性文件创建kubernetes configmap?

maven - SEVERE : Context Initialization failed java. io.FileNotFoundException:类路径资源[应用程序]

spring - Spring Initializr 生成的 pom.xml 出错

spring-boot - 如何在运行 Azure DevOps Pipeline 时跳过构建测试(Spring Boot Maven 项目)

java - Maven 拒绝从远程存储库下载 aar 打包的依赖项

java - Jersey servlet 的 web.xml 不响应请求

Maven:如果 outputType 是图形并且项目包含多个模块,则 dependency:tree 会给出错误的结果