Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 24884 invoked from network); 15 Sep 2006 10:28:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2006 10:28:55 -0000 Received: (qmail 71170 invoked by uid 500); 15 Sep 2006 10:28:50 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 70485 invoked by uid 500); 15 Sep 2006 10:28:47 -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 70464 invoked by uid 99); 15 Sep 2006 10:28:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 03:28:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.33.142.3] (HELO mailserver.no) (212.33.142.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 03:28:35 -0700 Received: from [10.0.0.13] (phobos.coretrek.no [80.239.119.10]) by mailserver.no (Postfix) with ESMTP id B413DF8BE2 for ; Fri, 15 Sep 2006 12:28:06 +0200 (CEST) Message-ID: <450A8042.9070301@coretrek.com> Date: Fri, 15 Sep 2006 12:28:18 +0200 From: =?ISO-8859-1?Q?St=E5le_Undheim?= User-Agent: Thunderbird 1.5.0.4 (X11/20060713) MIME-Version: 1.0 To: Maven Users List Subject: Re: From multiple source folders pr. project to one References: <81379337A8B96E469F2D880CD54D2472020C119A@tfsmail02.tfprod.taifook.com> In-Reply-To: <81379337A8B96E469F2D880CD54D2472020C119A@tfsmail02.tfprod.taifook.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6096543BE8422AA63FC2F830" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------enig6096543BE8422AA63FC2F830 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable How do I then i part2 define a dependency on part1? Is it possible to inherit the version from the parentProj to the part1 and part2 projects so I dont have to synchronize it on all levels? Adrian Shum wrote: > normally have something like >=20 > parentProj/ > parentProj/part1 > parentProj/part2 > parentProj/part3 > parentProj/part4 >=20 > parentProj have a POM containing the 4 modules > and in POM of each module, defines its dependency there > e.g. in part4, add to make it depends on part1, part2, par= t3 >=20 > so when u build at parentProj, everything will get build in correct ord= er. >=20 > I remember there is an article talking on the way to convert such kind = of project > into eclipse project (but I forgot where I saw it :P ). U may have a = search on that. >=20 > Adrian >=20 >=20 > -----Original Message----- > From: Stale Undheim [mailto:staaleu@coretrek.com] > Sent: Friday, September 15, 2006 4:49 PM > To: Maven User-list > Subject: From multiple source folders pr. project to one >=20 >=20 > I am currently looking into converting our projects that are now using > ant and alot of custom ant scripts, into using maven. I also wish to us= e > mavens default layouts rather than our old one. >=20 > Our old projects might look like this: >=20 > src/part1 > src/part2 > src/part3 > src/part4 >=20 > part1 might then have no dependencies, part2 and part3 depends on part1= , > and part4 depends on all the other src folders. Turning this into maven= > projects, I assume the correct way of doing it is to have 1 project for= > each part, each project being of type jar (as 1 source folder gets > turned into 1 jar). >=20 > How do I define dependencies here? Do I need to make a super project > that includes the others? That, to me at least, would not fix the inter= > dependencies of the source folders. If I use the tag in any o= f > part2, part3 or part4 projects, I need to change the project type to po= m. >=20 > Alternativly I will need to build by installing part1, then part2 and s= o > on in order, and depending on the jar themselves. But as I would like t= o > release my project in 1 tar.gz with 4 jars, this seems like its not > doable to me. >=20 > I would also like to turn part1-4 into 4 projects in eclipse (since > eclipse doesnt have sub-projects), with their dependencies set. But I > dont think this should be a problem with the eclipse plugin in maven. --=20 St=E5le Undheim Systemutvikler CoreTrek Tlf.: +47 51 97 85 97 E-post: staaleu@coretrek.no WEB: www.coretrek.no "Simple is beautiful" --------------enig6096543BE8422AA63FC2F830 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFCoBF1iR8YXiIcmARAi4yAJ9PYf7VzZvxWJiksYhcG9TJCE7lVwCgvmXd IzAw9HydJdbSyWOCcK37eoc= =HSHd -----END PGP SIGNATURE----- --------------enig6096543BE8422AA63FC2F830--