I am building the Apache Ignite project http://github.com/apache/ignite .
One of the maven pom.xml refers to the codehaus
exec-maven-plugin . Note that codehaus is now defunct as a company .
Is there something in the plugin itself that links to the http://nexus.codehaus.org repository? Consider the error message from running
mvn clean package
on that project:
[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]
Here is the snippet of 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>
Note: I am not all certain that the error were due to the codehaus mojo plugin. It is simply here noted given that were the only reference to codehaus in the project.
The Codehaus has shutdown it's doors. The new home of the plugins is: http://www.mojohaus.org/ . And in particular for the exec-maven-plugin . The source code can be found: https://github.com/mojohaus/exec-maven-plugin/ . Apart from that a project referencing a SNAPSHOT repository is simply wrong. Is the codehaus repository referenced in your pom or in the ignite project?
I found this question years after the fact but I actually have an answer. Use a newer (most recent perhaps) version of the plugin.
The old versions of the plugins are hard-coded to look for the http://snapshots.repository.codehaus.org . If you upgrade to a new version you should be ok.
Works for build-helper-maven-plugin
and for exec-maven-plugin
.
Old:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.9.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
</plugin>
New:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
</plugin>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.