Return-Path: Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: (qmail 61134 invoked from network); 21 Dec 2009 10:47:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Dec 2009 10:47:47 -0000 Received: (qmail 45771 invoked by uid 500); 21 Dec 2009 10:47:47 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 45752 invoked by uid 500); 21 Dec 2009 10:47:47 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 45742 invoked by uid 99); 21 Dec 2009 10:47:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2009 10:47:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 21 Dec 2009 10:47:39 +0000 Received: (qmail 8467 invoked from network); 21 Dec 2009 10:47:17 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 21 Dec 2009 10:47:17 -0000 Message-Id: From: Andrus Adamchik To: dev@cayenne.apache.org In-Reply-To: <4B2F3D03.3030809@maniatis.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Pom module dependencies Date: Mon, 21 Dec 2009 12:47:16 +0200 References: <27424429.16441261139771241.JavaMail.hudson@hudson.zones.apache.org> <13723140-BDEB-49DA-A0EA-8F9B0314966E@objectstyle.org> <4B2C0818.8020403@maniatis.org> <4B2F3D03.3030809@maniatis.org> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org Not 100% sure how the Maven "reactor" (an in-build set of projects) scoping works. But yeah, installing modules is the safest thing you can do. > > [INFO] Failed to resolve dependencies for one or more projects in > the reactor. Reason: Missing: > ---------- > 1) org.apache.cayenne.unpublished:cayenne-wocompat-unpublished:jar: > 3.1-SNAPSHOT My bad. We have module listings duplicated between 1.5 and 1.6 profiles. The wocompat wasn't in 1.6 profile. Fixed now. Andrus On Dec 21, 2009, at 11:16 AM, Aristedes Maniatis wrote: > On 19/12/09 9:54 AM, Aristedes Maniatis wrote: >> OK. I changed it. I don't understand Maven despite having slightly >> used >> it for some years now. The problem with 'install' is just that it >> takes >> so long. I don't understand why we want to install anything: can't >> the >> modules just build themselves against the compiled code in the other >> modules? Do they have to build against what is 'installed'? > > I've tracked down the problems I have in Clover to be exactly the > same issues. That is, each module in Cayenne builds not against the > other modules (and the code which ends up in target folders) but > instead against what is 'installed'. Which means that really, you > have to *always* install if you want to be sure to avoid problems. > > Is this: > > A: just how maven works? > B: something odd about the setup of Cayenne's pom? > > If B, what is needed to fix this and make 'install' go away? Right > now I am stuck unable to build Cayenne at all, because of this error: > > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Cayenne Modeler > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------ > > .... > > [INFO] Failed to resolve dependencies for one or more projects in > the reactor. Reason: Missing: > ---------- > 1) org.apache.cayenne.unpublished:cayenne-wocompat-unpublished:jar: > 3.1-SNAPSHOT > > > I'm guessing that it is alphabetically after cayenne-modeler and so > the build can never get to that module to build it and install it. I > can probably get around it by manually installing that module and > then trying to build the whole project again. But ugh... > > Ari > > -- > > --------------------------> > Aristedes Maniatis > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A >