On 3/23/2012 7:49 AM, Francesco Chicchiriccò wrote:
It seems that maven is trying to download cocoon artifacts from java.net (http://download.java.net/maven/2/) maven repository where, of course, they are not available.

This is happening because you probably have, at the end of myparent/pom.xml:

<repositories>
<repository>
<id>maven2-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
</repositories>

Change this to

<repositories>
<repository>
<id>maven2-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
<repository>
<id>apache.snapshots</id>
<name>Apache Snapshot Repository</name>
<url>http://repository.apache.org/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>

As you can see, we are telling maven that it must consider two repositories (and we know that missing artifacts are located in this second repository).

You did not experience this error on the original machine because you probably performed a "mvn install" of C3 sources, as part of your first attempts to deal with C3. This "mvn install" copied C3 artifacts in your local maven repository and made maven not needing to download them again from Internet.

BUILD SUCCESS
!

Thank you.

Lars

Reply via email to