Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 51706 invoked from network); 4 Nov 2010 22:22:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 22:22:23 -0000 Received: (qmail 5844 invoked by uid 500); 4 Nov 2010 22:22:52 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 4789 invoked by uid 500); 4 Nov 2010 22:22:50 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 4192 invoked by uid 99); 4 Nov 2010 22:22:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 22:22:50 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of supkichen@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 22:22:42 +0000 Received: by eyg5 with SMTP id 5so1868089eyg.30 for ; Thu, 04 Nov 2010 15:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=7GHKSOfL3dwr2cK7tq54bz0kZUOfnuwLZRwSvrESMpU=; b=gCd2JaxXhd1NT6aEPLKlDPFxx3y9x6w7s3nGdkwIIlF24NHQrU3Fi1RQHnqrJfpc9w DAcl3698CAHJkhLfJRkVXZ0FA6DzAIkZ+zHsooeKg/pIZow07zOp0V9d36HRvRhxpR0z 0Dedq4YUFEiV6Wv+R9t2UnqBG74OvUJOllbfI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=FWdUdiz6UTZ+NBE9RhlQGPAZ/7pJBy01uOcHvjZt6iB00gPyIIcZ2q8GsxW/OyAh4j vAfr02gHBC91bgkYrfT4w+HrcBTVg1/+HZyeCYBtcLxJ3mIcuxs8nYPoJMlygd+IN4JC YKVo/Cb0AET0E1x+8P0EgOc5F3OrVjW+dgFDI= MIME-Version: 1.0 Received: by 10.216.166.68 with SMTP id f46mr413878wel.26.1288909342377; Thu, 04 Nov 2010 15:22:22 -0700 (PDT) Received: by 10.216.135.135 with HTTP; Thu, 4 Nov 2010 15:22:22 -0700 (PDT) Date: Fri, 5 Nov 2010 09:22:22 +1100 Message-ID: Subject: strange dependency resolution errors in mvn 3.0 From: Craig To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Since upgrading to maven 3.0 our (previously reliable) Bamboo build server has been having a lot of randomly failing builds. I think I have narrowed the problem down to these kinds of messages from maven: [WARNING] The POM for my-group:my-artifact:jar:1.0-SNAPSHOT is missing, no dependency information available Looking in the local repo of the build server, the pom is indeed missing, although the jar/source/javadoc artifacts are there. The project with the missing pom is also being built by mvn3 on the build server, and has succeeded in the past. An example of the command line being invoked by Bamboo is: /disk/apache-maven-3.0/bin/mvn clean deploy site -e -B -U -DperformRelease=true So something seems to be deleting poms from the local repository. I can't think of any other tool which would access this directory other than maven 3 invoked as above, so it must be maven or a plugin deleting this file. A second problem, brought about by the first, is that after not finding the pom, mvn3 carries on with the build, even though it hasn't added any of the transitive dependencies from the missing pom to the classpath. This causes spurious build errors, like compilation errors, or even sometimes test failures, which are very misleading, if you didn't notice the aforementioned warning. Another point to note is that the missing pom is available in our nexus repo, but after not finding the pom in the local repo, mvn3 doesn't seem to try the nexus repo. If the entire directory is deleted from the local repo, then mvn will resolve again from nexus. These points suggest a possible metadata problem? Finally, to reiterate, these errors appear to be somewhat random, with builds working fine for a few days, then starting to fail. Any ideas, thanks. Craig using: maven 3.0, nexus 1.8, bamboo, linux, jdk6 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org