Each POM only create one artifact, so you will need two projects to create one EAR e one WAR.
Maybe this link can help you : http://www.theserverside.com/resources/article.jsp?l=MavenMagic
From: Jean-Fran�ois El Fouly <[EMAIL PROTECTED]> Reply-To: "Maven Users List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Is it possible to build WAR and EAR in the same project ? Date: Fri, 07 May 2004 12:35:53 +0200
Suppose I have a project with a web application. At the moment, I build the war in this project and the ear in another project that basically has just a POM, a maven.xml and build.properties.
Though it seems that the ear plugin was designed to build in the web application project itself rather than in another project (since it copies the built EAR in application/ears/application-version.ear.
On the other hand, if I want to build the EAR in the same project, I need to include the application war as a dependency, so I have some kind of chicken-and-egg problem (BTW it became even more difficult since wars now have versions).
Did I miss any obvious recipe ?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
