normally have something like

parentProj/
parentProj/part1
parentProj/part2
parentProj/part3
parentProj/part4

parentProj have a POM containing the 4 modules
and in POM of each module, defines its dependency there
e.g. in part4, add <dependency> to make it depends on part1, part2, part3

so when u build at parentProj, everything will get build in correct order.

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.

Adrian


-----Original Message-----
From: Stale Undheim [mailto:[EMAIL PROTECTED]
Sent: Friday, September 15, 2006 4:49 PM
To: Maven User-list
Subject: From multiple source folders pr. project to one


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 use
mavens default layouts rather than our old one.

Our old projects might look like this:

src/part1
src/part2
src/part3
src/part4

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).

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 <modules> tag in any of
part2, part3 or part4 projects, I need to change the project type to pom.

Alternativly I will need to build by installing part1, then part2 and so
on in order, and depending on the jar themselves. But as I would like to
release my project in 1 tar.gz with 4 jars, this seems like its not
doable to me.

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.
-- 
Ståle Undheim
Systemutvikler

CoreTrek
Tlf.:   +47 51 97 85 97
E-post: [EMAIL PROTECTED]
WEB:    www.coretrek.no

"Simple is beautiful"


This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Taifook 
Securities Group, its group companies and their content providers ("Parties") 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parites do not accept 
liability for any damage caused by this email.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to