File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Exclude jars from war when I maven build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Exclude jars from war when I maven build" Watch "Exclude jars from war when I maven build" New topic
Author

Exclude jars from war when I maven build

Matthew Snow
Ranch Hand

Joined: May 02, 2007
Posts: 82
I need to exclude some jars when I package my web project with Maven since my tomcat run environment provides them. How so I set that up in my pom.xml. Alternatively, what version of jstl.jar does tomcat 5.5 use and I'll just us that in my development environment? Thanks.


When you break the big rules, you get a lot of little rules.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19670
    
  18

Moving to our build-tools forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi Matthew,

Very quickly.

1.) You can set a dependency to scope 'provided' so that you don't bundle it when you build your artifact
2.) Look at the Tomcat website, they have that info listed if I remember correctly.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Matthew Snow
Ranch Hand

Joined: May 02, 2007
Posts: 82
Thanks, setting scope to provided fixed it.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exclude jars from war when I maven build