You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Néstor Boscán <ne...@tcs.com.ve> on 2008/06/18 20:24:23 UTC
How to have two poms on the same project to generate WAR/EAR?
Hi
I need to generate ear files from web applications. So what I understood is
that I need to pom.xml files. One for the project that generates the war
file an another one for the ear files that includes the war files. Is there
a way to have this two pom.xml on the same project and not create two
different projects?. I know is simple, but I want to manage as little
projects as possible.
Regards,
Néstor Boscán
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: How to have two poms on the same project to generate WAR/EAR?
Posted by "Jeudy, Guillaume" <gj...@teksystems.com>.
Nestor,
You will have to create a top level aggregator project of packaging: pom.
Then you can have 2 sub modules with 1 of the EAR and the other WAR packaging. At least that is how I setup the maven project on my end. The format is 1 archive for 1 pom file, you cannot really work around this.
Thanks,
-Guillaume
________________________________
From: N�stor Bosc�n [mailto:nestor.boscan@tcs.com.ve]
Sent: Wed 18/06/2008 2:24 PM
To: users@maven.apache.org
Subject: How to have two poms on the same project to generate WAR/EAR?
Hi
I need to generate ear files from web applications. So what I understood is
that I need to pom.xml files. One for the project that generates the war
file an another one for the ear files that includes the war files. Is there
a way to have this two pom.xml on the same project and not create two
different projects?. I know is simple, but I want to manage as little
projects as possible.
Regards,
N�stor Bosc�n
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
____________________________________________________________________________________________________
This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you.