Yeah, I meant classes. That'll help while I restructure the project. 

Thanks Guys!

-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2008 13:57
To: Maven Users List
Subject: Re: creating a JAR file of the source code in a war project

On Wed, Dec 10, 2008 at 8:48 AM, Richard Chamberlain
<[EMAIL PROTECTED]> wrote:
> I've got a standard war project. I'd like to jar up my source code and
> put it in WEB-INF/lib instead of compiling it to WEB-INF/classes.
>
> This would allow me to overlay it into another war project without
> mixing up WEB-INF/classes
>
> Is this possible/advisable?

The best thing would be to put the code in a separate module and
include it as a dependency jar in the war projects.

If you can't move the code, you can configure the war plugin to deploy
a jar containing the classes, and use that jar from the other war.

http://maven.apache.org/plugins/maven-war-plugin/faq.html#attached

I don't understand why you'd want the sources in WEB-INF/lib though...

-- 
Wendy

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


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

Reply via email to