You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Brill Pappin <br...@stabilia.com> on 2004/06/28 14:53:45 UTC

RFE for the war plugin

Who do I talk to about changes to the war plugin?

The war plugin collects the un-JAR'd classes into WEB-INF/classes but 
I'd like instead to use the jar plugin and have the war plugin use that 
instead (in WEB-INF/lib).


Why you ask;
1) doing so allows you to store the package version and other info in 
the manifest which will be used in error reporting, etc.
2) makes the webapp smaller, which is significant in at least one case I 
have.
3) preference, I think it's cleaner and all the tools to do it are 
sitting right there (I was surprised it didn't already).

I'm sure some of us would prefer to keep the WEB-INF/classes dir, so my 
suggestion would be to include a switch property that would allow the 
user to use one or the other.

- Brill

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: RFE for the war plugin

Posted by Brett Porter <br...@gmail.com>.
I don't see any reason to do this. It won't make it any smaller,
unless you compress the JAR - but if you are worried about space keep
the WAR packed in the container and compressed and you won't gain
anything from packing the classes.

You can still add a manifest to a WAR. I'd recommend against doing this.

- Brett

On Mon, 28 Jun 2004 15:03:04 +0200, Tomasz Pik <to...@gmail.com> wrote:
> 
> On Mon, 28 Jun 2004 08:53:45 -0400, Brill Pappin <br...@stabilia.com> wrote:
> 
> > I'm sure some of us would prefer to keep the WEB-INF/classes dir, so my
> > suggestion would be to include a switch property that would allow the
> > user to use one or the other.
> 
> Here's one reason: servlet specs define, that classes from WEB-INF/classes
> are loaded before WEB-INF/lib so this may be used as some kind of 'overloading',
> for example for classes from 'third party' libraries (I know it's ugly
> but it's possible
> due to spec).
> 
> Regards,
> Tomek
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: RFE for the war plugin

Posted by Tomasz Pik <to...@gmail.com>.
On Mon, 28 Jun 2004 08:53:45 -0400, Brill Pappin <br...@stabilia.com> wrote:

> I'm sure some of us would prefer to keep the WEB-INF/classes dir, so my
> suggestion would be to include a switch property that would allow the
> user to use one or the other.

Here's one reason: servlet specs define, that classes from WEB-INF/classes
are loaded before WEB-INF/lib so this may be used as some kind of 'overloading',
for example for classes from 'third party' libraries (I know it's ugly
but it's possible
due to spec).

Regards,
Tomek

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org