maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell, Mark" <>
Subject RE: M2 and inheritance
Date Wed, 12 Oct 2005 15:50:22 GMT
A very good sample project showing how this is done can be found at

Basically you setup the project dependencies in the
<dependencyManagement> section and then reference those dependencies in
the child projects (minus the version number as it will get that from
the parent pom.)


-----Original Message-----
From: Alvarado, Juan [] 
Sent: Wednesday, October 12, 2005 9:36 AM
To: ''
Subject: M2 and inheritance

I have one project with three modules. A dependency might be needed in
than one module. If I add that dependency to my top level pom.xml, the
modules below do not pick it up.  I was under the impression that given
maven's inheritance capabilities I would be able to do this. What I want
avoid is having to repeat the same dependencies in different pom.xml

Thanks in advance,

Juan A.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message