Return-Path: X-Original-To: apmail-avro-user-archive@www.apache.org Delivered-To: apmail-avro-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F0C142B6 for ; Tue, 5 Jul 2011 21:53:26 +0000 (UTC) Received: (qmail 46788 invoked by uid 500); 5 Jul 2011 21:53:26 -0000 Delivered-To: apmail-avro-user-archive@avro.apache.org Received: (qmail 46714 invoked by uid 500); 5 Jul 2011 21:53:25 -0000 Mailing-List: contact user-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@avro.apache.org Delivered-To: mailing list user@avro.apache.org Received: (qmail 46705 invoked by uid 99); 5 Jul 2011 21:53:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 21:53:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jeremy@lewi.us designates 66.147.249.253 as permitted sender) Received: from [66.147.249.253] (HELO oproxy1-pub.bluehost.com) (66.147.249.253) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 05 Jul 2011 21:53:17 +0000 Received: (qmail 11339 invoked by uid 0); 5 Jul 2011 21:52:56 -0000 Received: from unknown (HELO host162.hostmonster.com) (74.220.207.162) by oproxy1.bluehost.com with SMTP; 5 Jul 2011 21:52:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=lewi.us; h=Received:Subject:From:To:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding:X-Identified-User; b=iLknOcnoD/EAMTcR06B9KQlJxhyIeareVXjG4oCN/4nJJBbm3sdFUQXl2szqIozCSdOjsN14cUsyYUnFsE7BF3l3+u7ahQI1o5d9r9XxHMwSVWo+E6LRU4fMvl57JTTg; Received: from ip98-176-124-78.sd.sd.cox.net ([98.176.124.78] helo=[192.168.102.102]) by host162.hostmonster.com with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QeDY7-00020T-Rx; Tue, 05 Jul 2011 15:52:55 -0600 Subject: Dependencies in pom aggregation From: Jeremy Lewi To: users@maven.apache.org, user@avro.apache.org Content-Type: text/plain Date: Tue, 05 Jul 2011 14:52:55 -0700 Message-Id: <1309902775.11153.5432.camel@massimo> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 7bit X-Identified-User: {1094:host162.hostmonster.com:lewilabo:lewi.us} {sentby:smtp auth 98.176.124.78 authed with jeremy@lewi.us} Hi, I'm working on the apache avro project and I'm having a problem with maven that I was hoping to get some help with. My project consists of several modules, one of which is "mapred". Now I can build "mapred" just fine e.g by doing mvn package from within the project. Another module in the project is "tools". This module depends on the "mapred" module. So its pom file declares the artifact for mapred as a dependency. So far so good. The problem is I would like to make the test class in the "tools" modules depend on the "test" classes in "mapred". So I would like to build a jar in "mapred" containing the "test" classes and then declare this as a dependency for the test classes in "tools". In the mapred module I can build a jar containing the test classes by doing mvn jar:test-jar but I'm not sure how to add this jar as a dependency for the "tools" module during testing. Thanks Jeremy