maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Coyner, Brian M. (STL) - contr" <>
Subject RE: Can I invoke (execute) a parent pom within a child pom
Date Thu, 23 Feb 2006 16:07:54 GMT
It is my understanding (and the source code seems to prove this) that a
<module> can only exist in a pom whose <packaging> is "pom". This means
that a pom file that generates a WAR file (<packaging>war</packaging>)
cannot utilize the maven reactor functionality for building dependent
modules. Instead you have to have a pom file whose packaging is
<packaging>pom<packaging> to utilize the maven reactor. Specifically, if
your packaging is not "pom" then you cannot list dependent modules.
Maven uses the term "aggregator" to reference projects packaged as

Download the source and look at 'DefaultModelValidator' and 'Bootstrap'.


> _____________________________________________ 
> From: 	Leasck, Andrew G. (STL)  
> Sent:	Wednesday, February 22, 2006 4:14 PM
> To:	''
> Cc:	Coyner, Brian M. (STL) - contr; Frank, Keith (STL)
> Subject:	Can I invoke (execute) a parent pom within a child pom
> I have a parent-pom.xml that defines multiple <modules> and common
> <dependencies> working as expected, such that when I invoke the
> install goal I get my versioned module jars published to my local
> repository.
> I have a child pom (pom.xml) that is used to create my war, the
> <parent> is defined and it has <dependencies> on the modules defined
> in the parent pom above.  
> If the dependencies do not exist (I removed them from my local
> repository) the maven fails since the dependent jars are nowhere to be
> found.  I would like the child pom to first invoke the parent to
> install.  Thus ensuring that the latest module source is jar'd and
> placed into the lib directory.
> I hope I articulated the problem clearly Any ideas or help would be
> greatly appreciated.
> Thank you in advance.
> Leasck
******* Confidentiality Notice *******
This email, its electronic document attachments, and the contents of its website linkages
may contain confidential health information.  This information is intended solely for use
by the individual or entity to whom it is addressed.  If you have received this information
in error, please notify the sender immediately and arrange for the prompt destruction of the
material and any accompanying attachments.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message