Thanks Steve! In your experience, is it better to have the parent project as a separate project all-together or include it? For example I tried it both ways and both approaches work technically:
Mydata project.xml (extends conf/project-dependencies.xml) conf/project-dependencies.xml (hibernate dependency declared) Myweb project.xml (extends Mydata/conf/project-dependencies.xml) Or: Mywebdata project.xml (hibernate dependency) Mydata project.xml (extends Mywebdata/project.xml) Myweb project.xml (extends Mywebdata/project.xml) The downside I see with the latter approach is that a developer then has to checkout 3 CVS modules where one module basically has one file in it. Also if I later created a "Mywebservices" project that depends on Mydata it would then need to extend "Mywebdata/project.xml" as well for it to get the hibernate dependency. The first approach feels a touch kludgy though because I had to put project-dependencies.xml in a sub-directory so that projects extending it did not also inherit Mydata/maven.xml. I don't have a lot of experience with Maven yet though so I'm hoping other people have run into this and can share their experiences! Thanks, Todd -----Original Message----- From: Steve Molloy [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 10:39 AM To: Maven Users List Subject: Re: Duplicate project dependenices Make a parent project with hibernate dependency so you can use inheritance... Steve Molloy On Thu, 2005-01-13 at 10:29 -0800, Todd Huss wrote: > I have a mydata project which publishes mydata.jar to my maven repository > when I do "maven jar:install". mydata.jar also requires hibernate.jar to be > of any use to other projects. > > My myweb project creates myweb.war which includes mydata.jar through a > dependency. However, I'm currently specifying the dependency on > hibernate.jar in both myweb/project.xml and mydata/project.xml which isn't > very elegant. > > Is there a way in myweb/project.xml to have it include all of mydata.jar's > dependencies in the war without having duplicate dependency statements in > both projects? > > Thanks, > Todd > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]