Let me try to clarify again:

We¹re currently using the shade plugin to generate a single, uber foo.jar
containing all of foo¹s classses as well as the class files of ALL
dependencies.

I want to apply that same idea to my my Maven war build as far as the stuff
going into /WEB-INF/lib

That is, instead of having 10 different jars (foo.jar and all of its
dependency jars) in my WAR¹s WEB-INF/lib folder, I just want it to contain
the uber foo-with-dependencies.jar artifact.

Maven¹s war plugin seems to automatically expand all dependencies and suck
in the individual jars instead.

Unless I¹m missing something, provided scope is just something that tells
Maven to exclude a dependency from the output.

I¹m actually using that (for example) on the servlet-api dependency b/c app
servers don¹t let you deploy your own copy of javax.servlet.

On 8/10/09 12:25 PM, "Mick Knutson" <[email protected]> wrote:

> <scope>provided</scope>
> 
> 
> 
> 
> ---
> Thank YouŠ
> 
> Mick Knutson, President
> 
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
> 
> Website: http://baselogic.com
> Linked IN: http://linkedin.com/in/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
> ---
> 
> 
> 
> On Mon, Aug 10, 2009 at 12:18 PM, Heinrich Nirschl <
> [email protected]> wrote:
> 
>> > On Mon, Aug 10, 2009 at 5:01 PM, Comerford,
>> > Sean<[email protected]> wrote:
>>> > > I have a Maven 2.0.9 webapp build that uses the WAR plugin.
>>> > >
>>> > > Is there a way to have JUST foo-2.0.jar show in WEB-INF/lib instead of
>> > all
>>> > > the other jars?
>> >
>> > Yes, have a look at the packagingExclude and packagingInclude parameters in
>> > http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
>> >
>> > But I do not understand why you would like to have this.
>> >
>> > - Henry
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>> >
> 

-- 
Sean Comerford, Software Engineer
ESPN.com Site Architecture Group
Office: 860.766.6454    Cell: 860.951.6973

Reply via email to