I have posted about this question several times before but haven't received
many responses.  I am hoping that someone has done or knows how to
accomplish the following.

Basically, I have several multi module projects.  Each project defines a
parent pom.xml file which contains a list of modules as well as the
project's version id (all children use the parent.version).  In addition, if
necessary, it defines any common dependencies for it's modules.  

I have several projects that follow this pattern, most of which produce a
deployable webapp and consist of webapp, model, data access, and service
modules.  For the most part, the data access modules usually share common
configuration such as spring and hibernate dependencies and perhaps some
common plugins.  So, in the case of a data access module, I would like it's
parent to be the projects' parent pom.xml file, but I would also like it to
be able to inherit data access configurations from a different pom.xml file.  

I know that you can create an inheritance chain, but in this case, I really
don't want the project's parent pom.xml file to inherit from a data access
pom.xml for obvious reasons.  

The solution may be that I have to redefine the spring and hibernate
dependencies as well as plugins in each data access project.  I can do that,
but I wanted to explore a more elegant solution before resorting to that.

Any help would be greatly appreciated.

Thanks,

jp4
-- 
View this message in context: 
http://www.nabble.com/POM-Inheritance-tf3304518s177.html#a9192076
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to