Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans web application - excluding the JAR while building the WAR

I'm using Netbeans IDE for developing a web applications, and I've some JARs available in the application server which don't need to be in the WAR (but we need them to compile and run locally).

Is there an option in Netbeans to exclude the JAR file while building the WAR file?

like image 492
Santhosh Reddy Mandadi Avatar asked May 18 '10 09:05

Santhosh Reddy Mandadi


1 Answers

  1. Select the project in the Projects explorer window.
  2. Pick the Project Properties item from the File menu (up in the menubar).
  3. Select the word Libraries from the list on the lefthand side of the dialog that appears.
  4. For each jar/library listed in the Compile-time Libraries list, uncheck those that do not need to be included in your war file.
like image 169
vkraemer Avatar answered Nov 09 '22 08:11

vkraemer