Hi,

(Maven2)
if you need the WAR classes in JAR coz you want it to include in a WAR/lib,
the logical path would be to separate your WAR into two Maven modules:

one for Java sources only, which is packaging JAR
and for WAR with packaging war for resources, jsps, etc which reference the
previous as dependency.

Remember: do not try to create two artifacts from one POM, it is possible
but not in M2 spirit.

~t~

On 8/21/06, Attila Mezei-Horvati <[EMAIL PROTECTED]> wrote:

How can I create a jar from the classes compiled into
the war? (for tomcat)

Currently if I run the war package it leaves my
sources in the web-inf/classes dir as compiled
classes. I would like to put them in a jar and have it
included in the web-inf/lib dir. Is that possible?

thanks,
Attila

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to