我正在构建Apache Ignite项目http://github.com/apache/ignite。未知主机异常nexus.codehaus.org在maven build
其中一个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的唯一参考。
我与'EXEC-Maven的plugin'同样的问题 - 你是不是疯了。我在exec-maven-plugin中有一个'',它一直试图从snapshots.repository.codehaus.org下载它。猜猜看,它在那里找不到。我已经通过插件代码(和我的)搜索了所有内容,但没有提及它。 –
sbzoom