You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jp4 <jo...@hnpsolutions.com> on 2007/02/22 21:38:50 UTC

Re: [m2] POM Inheritance

I still haven't found a good solution for this and I was hoping to spark some
discussion with a follow up post.


jp4 wrote:
> 
> I was wondering if there is any way to achieve multiple pom inheritance
> with maven.  I have created several pom abstractions (i.e. data access
> which includes dependencies for  hibernate, spring, etc...  webapp which
> includes dependencies for struts, etc) for convenience as most of my data
> access projects follow the same pattern using hibernate and spring.  I
> don't want to have to redefine these dependencies in each of my data
> access projects. 
> 
> Now here is where the problem comes in, I have a multi-module projectA
> that has a model, data access, webapp projects.  In addition, I have a
> multi-module projectB that has a model, data access, webapp project.  I
> would like to have all modules in projectA have the same version so that I
> can refer to version for projectA as ${project.version} in my model, data
> access, and webapp.  The problem that I have is that I want projectA's
> data access project to inherit from both the data access pom as well as
> the projectA pom.  Is there any way to do this?  Or is there a different
> approach to achieve the desired results?
> 
> Thanks,
> jp4
> 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org