Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown host exception nexus.codehaus.org in maven build

Tags:

maven

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.

like image 449
WestCoastProjects Avatar asked Sep 08 '15 03:09

WestCoastProjects


1 Answers

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?

like image 152
khmarbaise Avatar answered Oct 19 '22 00:10

khmarbaise