You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by TAN YUNSHI <Yu...@alcatel-lucent.com> on 2010/01/13 15:11:18 UTC

how to specify the children module POM file name

Hi all,

Do you know how to specify the children module POM file name?

My structure is like this,

Project
   | ---- module 1
   |    |------pom.xml
   | ---- module 2
   |    |------pom.xml
   |    |------pom_init.xml
   | ---- pom.xml

In the parent POM, I like to add the 'pom_init.xml' as the POM file for
module 2. The reason is complicate, the dev team creat the pom.xml and I
have not the right to touch it and I have to use the 'pom_init.xml' as
the POM file.

Thank you very much.

Yunshi




RE: how to specify the children module POM file name

Posted by su...@wipro.com.
There is only one POM per maven module to my knowledge.

Why not add your configuration as a profile in the pom.xml of module 2.

Yes, you will have to touch pom for that :-)

/Subir 

-----Original Message-----
From: TAN YUNSHI [mailto:Yunshi.Tan@alcatel-lucent.com] 
Sent: Wednesday, January 13, 2010 7:41 PM
To: users@maven.apache.org
Subject: how to specify the children module POM file name

Hi all,

Do you know how to specify the children module POM file name?

My structure is like this,

Project
   | ---- module 1
   |    |------pom.xml
   | ---- module 2
   |    |------pom.xml
   |    |------pom_init.xml
   | ---- pom.xml

In the parent POM, I like to add the 'pom_init.xml' as the POM file for
module 2. The reason is complicate, the dev team creat the pom.xml and I
have not the right to touch it and I have to use the 'pom_init.xml' as
the POM file.

Thank you very much.

Yunshi




Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com

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


Re: how to specify the children module POM file name

Posted by Wayne Fay <wa...@gmail.com>.
> In the parent POM, I like to add the 'pom_init.xml' as the POM file for
> module 2. The reason is complicate, the dev team creat the pom.xml and I
> have not the right to touch it and I have to use the 'pom_init.xml' as
> the POM file.

Did you try <module>module2/pom_init.xml</module>? I'm not sure if it
will work, but it is worth a try.

But you really should just get the other team to change the pom.xml so
it matches your pom_init.xml file to avoid this hassle in the first
place.

Wayne

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