You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by vojjala <rv...@gmail.com> on 2007/01/23 16:36:31 UTC

calling pom from another pom

Hi Maven Users, I am wondering how can I call the sub level pom.xml from the
top level directory
My folder structure like this"
c:\test\testapp\pom.xml
c:\test\test1app\pom.xml
c:\test\test2app\pom.xml
What I want is, in single execution of top level
pom(c:\test\testapp\pom.xml) should able to run rest of the poms. I have
tried running all them independently it worked fine but this is very
troublesome to run individually.
thanks a lot for the help.

RAM.
-- 
View this message in context: http://www.nabble.com/calling-pom-from-another-pom-tf3064828s177.html#a8523908
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


Re: calling pom from another pom

Posted by Wayne Fay <wa...@gmail.com>.
This works automatically if you set <modules> in the parent pom, and
<parent> tag in the children poms.

However, you have a directory structure which is not normal, so you
really need to change it before this will work. You need to use:

c:\test\testapp\pom.xml
c:\test\testapp\test1app\pom.xml
c:\test\testapp\test2app\pom.xml

Wayne

On 1/23/07, vojjala <rv...@gmail.com> wrote:
>
> Hi Maven Users, I am wondering how can I call the sub level pom.xml from the
> top level directory
> My folder structure like this"
> c:\test\testapp\pom.xml
> c:\test\test1app\pom.xml
> c:\test\test2app\pom.xml
> What I want is, in single execution of top level
> pom(c:\test\testapp\pom.xml) should able to run rest of the poms. I have
> tried running all them independently it worked fine but this is very
> troublesome to run individually.
> thanks a lot for the help.
>
> RAM.
> --
> View this message in context: http://www.nabble.com/calling-pom-from-another-pom-tf3064828s177.html#a8523908
> 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
>
>

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


Re: calling pom from another pom

Posted by vojjala <rv...@gmail.com>.
Thanks a lot, I can able to call the sub level pom using "pom" as packaging
in parent pom.xml. But I could not create ear, this is my sample code in
parent pom.xml  for ear.

<build>
	<defaultGoal>package</defaultGoal>
    <plugins>
		<plugin>
	  <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-ear-plugin</artifactId>
        <version>2.0</version>
        <configuration>
		  
<outputDirectory>C:\develop\OnePortal\CEApp\CEPortalEAR</outputDirectory>
		   <finalName>CEAPP</finalName>
    <modules>
	  <module>SamplePortlet</module>
	   <module>ClaimsPortlet</module>	
   </modules>

		</configuration>

Thanks a lot for the great help.

RAM.


vojjala wrote:
> 
> Hi Maven Users, I am wondering how can I call the sub level pom.xml from
> the top level directory
> My folder structure like this"
> c:\test\testapp\pom.xml
> c:\test\test1app\pom.xml
> c:\test\test2app\pom.xml
> What I want is, in single execution of top level
> pom(c:\test\testapp\pom.xml) should able to run rest of the poms. I have
> tried running all them independently it worked fine but this is very
> troublesome to run individually.
> thanks a lot for the help.
> 
> RAM.
> 

-- 
View this message in context: http://www.nabble.com/calling-pom-from-another-pom-tf3064828s177.html#a8524575
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


RE: calling pom from another pom

Posted by "Sharma, Rohit" <Ro...@bankofamerica.com>.
Define each of them as modules in your parent pom.

    <module>testapp</module>
    <module>test1app</module>
    <module>test2app</module>

 
Regards,
 
Rohit Sharma
GDC Contractor - Infosys Tech Ltd.
London, UK
Desk: (+44) 207 174 5352
mailto: Rohit.Sharma@BankofAmerica.com
 

-----Original Message-----
From: vojjala [mailto:rvojjala@gmail.com] 
Sent: 23 January 2007 15:37
To: users@maven.apache.org
Subject: calling pom from another pom


Hi Maven Users, I am wondering how can I call the sub level pom.xml from
the
top level directory
My folder structure like this"
c:\test\testapp\pom.xml
c:\test\test1app\pom.xml
c:\test\test2app\pom.xml
What I want is, in single execution of top level
pom(c:\test\testapp\pom.xml) should able to run rest of the poms. I have
tried running all them independently it worked fine but this is very
troublesome to run individually.
thanks a lot for the help.

RAM.
-- 
View this message in context:
http://www.nabble.com/calling-pom-from-another-pom-tf3064828s177.html#a8
523908
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




Notice to recipient:
The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.

When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity.

If this email originates from the U.K. please note that Bank of America, N.A., London Branch and Banc of America Securities Limited are authorised and regulated by the Financial Services Authority.

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