The short answer would be no. One of Maven root principles is 1 project = 1
POM = 1 artifact.

So typically you would have one project for the jar and one project for the
war, with a dependency on the jar.

http://maven.apache.org/guides/mini/guide-webapp.html

2006/9/11, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED]>:

Hi.  If there is a src directory with .java files and a web directory
with web-related files, is there a way to build both the .jar from the
src directory and the web app from the web directory from a single
pom.xml?  Here, the target directory will at the end have an a.jar and
b.war, where a is the Java app and b is the web app.  Thanks for your
support.


This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law.  If
you are not the intended recipient, you should delete this message.


Any disclosure, copying, or distribution of this message, or the taking of
any action based on it, is strictly prohibited. [v.E.1]


Reply via email to