facebook

How to include only 1 of my libraires in a war file?

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #298908 Reply

    My webapp uses tomcat 6.0.18 and has 32 required jar files held in a /lib direrctory. These are defined as libraries (Project -> Properties -> Java Build Path -> Libraries) in my project.

    I now want to only include one of these libraries in the war file. The other libraries are going to be deployed once only to the tomcat “common/lib” directory and will no longer be included in the war file. they are still needed to build the application however.

    Is there anyway to choose a subset of libraries to include on the war file?

    #298913 Reply

    Loyal Water
    Member

    Hi,
    I would suggest you create a new user library with this single library and add the user library to the build path. You can then go to Windows > Prefs > MyEclipse > Java Enterprise Project > Web Project > Deployment and make sure only “JARs from user libraries” is checked under library deployment policies. That should get only the 1 library you want to be deployed with your project.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to include only 1 of my libraires in a war file?

You must be logged in to post in the forum log in