You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by vijay shanker <vi...@gmail.com> on 2009/12/27 20:25:40 UTC

maven packaging suggestions

My goal is to package my web applciation in a war file. When I run <mvn
package> goal, it creates a war file of almost around 108MB. My project has
dependencies to a lot of third party libraries.

So I want to say some thing to Maven that will stop third party libraries
from being packaged in the war file. and let these library available in my
tomcat server instalation.

Can you please guide me what should I do?

Regards,
Vijay Shanker Dubey

Re: maven packaging suggestions

Posted by vijay shanker <vi...@gmail.com>.
Yes Thorsten;

This is what i am doing now. and wanted to share to list by today day end.

By the way,  maven-war-plugin has a lot more options to explore.

Regards,
Vijay Shanker Dubey



On Mon, Dec 28, 2009 at 3:37 PM, Thorsten Heit <th...@gmx.de> wrote:

> Hi,
>
> > So I want to say some thing to Maven that will stop third party libraries
> > from being packaged in the war file. and let these library available in
> my
> > tomcat server instalation.
>
> Perhaps you should use <scope>provided</scope> on the dependencies that are
> available in your Tomcat installation.
>
>
> Regards
>
> Thorsten

Re: maven packaging suggestions

Posted by Thorsten Heit <th...@gmx.de>.
Hi,

> So I want to say some thing to Maven that will stop third party libraries
> from being packaged in the war file. and let these library available in my
> tomcat server instalation.

Perhaps you should use <scope>provided</scope> on the dependencies that are available in your Tomcat installation.


Regards

Thorsten

Re: maven packaging suggestions

Posted by vijay shanker <vi...@gmail.com>.
Thanks Justin

I will look in to it.


Regards,
Vijay Shanker Dubey



On Mon, Dec 28, 2009 at 1:13 AM, Justin Edelson <ju...@gmail.com>wrote:

> There is a page describing this exact use case in the maven war plugin
> documentation.
>
>
> On Dec 27, 2009, at 2:25 PM, vijay shanker <vi...@gmail.com> wrote:
>
>  My goal is to package my web applciation in a war file. When I run <mvn
>> package> goal, it creates a war file of almost around 108MB. My project
>> has
>> dependencies to a lot of third party libraries.
>>
>> So I want to say some thing to Maven that will stop third party libraries
>> from being packaged in the war file. and let these library available in my
>> tomcat server instalation.
>>
>> Can you please guide me what should I do?
>>
>> Regards,
>> Vijay Shanker Dubey
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: maven packaging suggestions

Posted by Justin Edelson <ju...@gmail.com>.
There is a page describing this exact use case in the maven war plugin  
documentation.

On Dec 27, 2009, at 2:25 PM, vijay shanker <vi...@gmail.com> wrote:

> My goal is to package my web applciation in a war file. When I run  
> <mvn
> package> goal, it creates a war file of almost around 108MB. My  
> project has
> dependencies to a lot of third party libraries.
>
> So I want to say some thing to Maven that will stop third party  
> libraries
> from being packaged in the war file. and let these library available  
> in my
> tomcat server instalation.
>
> Can you please guide me what should I do?
>
> Regards,
> Vijay Shanker Dubey

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