Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD1DF9A59 for ; Fri, 23 Mar 2012 15:45:43 +0000 (UTC) Received: (qmail 92472 invoked by uid 500); 23 Mar 2012 15:45:43 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 92423 invoked by uid 500); 23 Mar 2012 15:45:43 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 92412 invoked by uid 99); 23 Mar 2012 15:45:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2012 15:45:43 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lars_huttar@sil.org designates 208.145.81.51 as permitted sender) Received: from [208.145.81.51] (HELO smtp1.wsfo.org) (208.145.81.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2012 15:45:36 +0000 Received: from mail.link77.net (cgp2.mail.link77.net [172.22.65.14]) by smtp1.wsfo.org (8.13.8/8.13.8) with ESMTP id q2NFjFxl007972; Fri, 23 Mar 2012 11:45:15 -0400 X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.15 (ClamAV engine v0.96.5) X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.15 (ClamAV engine v0.96.5) X-ExtScanner: Niversoft's Find_Attachments Received: from [172.20.3.249] (account lars_huttar@sil.org [172.20.3.249] verified) by cgp2.mail.link77.net (CommuniGate Pro SMTP 5.4.4) with ESMTPSA id 81290120; Fri, 23 Mar 2012 11:45:15 -0400 Message-ID: <4F6C9A8A.50502@sil.org> Date: Fri, 23 Mar 2012 10:45:14 -0500 From: Lars Huttar User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: users@cocoon.apache.org CC: =?ISO-8859-1?Q?Francesco_Chicchiricc=F2?= Subject: Re: mvn clean install failure: "Could not resolve dependencies" References: <4F6C6F05.2060406@sil.org> <4F6C716F.5070409@apache.org> In-Reply-To: <4F6C716F.5070409@apache.org> Content-Type: multipart/alternative; boundary="------------070809030201080103020800" X-Scanned-By: MIMEDefang 2.72 on 172.22.65.23 X-Virus-Checked: Checked by ClamAV on apache.org --------------070809030201080103020800 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: > > > > maven2-repository.java.net > Java.net Repository for Maven > http://download.java.net/maven/2/ > default > > > > Change this to > > > > maven2-repository.java.net > Java.net Repository for Maven > http://download.java.net/maven/2/ > default > > > apache.snapshots > Apache Snapshot Repository > http://repository.apache.org/snapshots > > false > > > > > 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 --------------070809030201080103020800 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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

--------------070809030201080103020800--