You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Walter Vandeweyer <wv...@mail.be> on 2005/05/20 12:37:54 UTC
POM inheritance & CVS
Hi all
I'm building a EAR with multiple modules:
- WEB module
- EJB jar module
- java jar module
I did find out that is very comfortable to use POM inheritance, by writing a central Project.xml, and having all the others extending from it, like :
<extend>${basedir}/../project.xml</extend>
However there is a problem when building versioned modules. Maven checks out the code from CVS into a directory like:
${my-project-home}/target/checkouts
This way Maven expects the parent POM to be located in the 'checkouts' directory of every module that is used in my project.
Is there any way to dynamically refer to 1 parent POM when using a repository?
Is there also a solution to versioning the parent POM, in order to be able to extend from the correct parent pom version when building the EAR?
Walter.
-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: POM inheritance & CVS
Posted by Brett Porter <br...@gmail.com>.
On 5/20/05, Walter Vandeweyer <wv...@mail.be> wrote:
> I did find out that is very comfortable to use POM inheritance, by writing a central Project.xml, and having all the others extending from it, like :
>
> <extend>${basedir}/../project.xml</extend>
>
> However there is a problem when building versioned modules. Maven checks out the code from CVS into a directory like:
>
> ${my-project-home}/target/checkouts
>
> This way Maven expects the parent POM to be located in the 'checkouts' directory of every module that is used in my project.
Yes, this is a known problem. You can look at a workaround in Maven's
SVN (see maven.xml in plugin-parent).
> Is there any way to dynamically refer to 1 parent POM when using a repository?
> Is there also a solution to versioning the parent POM, in order to be able to extend from the correct parent pom version when building the EAR?
While this is completely fixed in Maven2, we're still looking at
backporting it to Maven 1.1.
Cheers,
Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org