- This topic has 14 replies, 3 voices, and was last updated 16 years, 4 months ago by
Loyal Water.
-
AuthorPosts
-
MaxRahderMemberI’d like to exclude my JARs from the WAR exported from MyEclipse, and from the Tomcat instance I deploy to during development
Under “Properties | MyEclipse | Web” I set “Library Deployment Policies” to all off so — supposedly — that no JARs included in deployment. However, when I redeploy, the JARs still end up in the expanded web app on Tomcat, and the JARs are also in the WAR when I Export.
I’m using “MyEclipse Enterprise Workbench 6.5”, version 6.5.1 GA.
What’s the procedure?
Loyal WaterMemberMaxRahder,
If you uncheck all the check boxes in the deployment page then the libraries should ideally not get deployed. Can you tell me what is the location of the jars that are getting deployed? Are these jars on the project build path?
MaxRahderMemberYes, they are all on the build path. Under “Java Build Path | Order and Export” all are de-selected, and under “Properties | MyEclipse | Web | Deployment” all under “Library Deployment Policies” are de-selected.
To test, I did an Export to a WAR, then unzipped it and verified that indeed, WEB-INF/lib contains all the JARs.
The goal is this: We rarely change the JARs, although our own code changes a lot. Deployment and upload to the server would be much quicker if we put the contents of our Web application’s WEB-INF/lib folder into Tomcat’s shared lib folder, and omitted that folder from the WAR.
Thanks for the help!
Loyal WaterMemberAfter unchecking all the options under preference, right click on your project and go to MyEclipse > Add and Remove Project Deployments > (select your project in the Project Dropdown) > Add > Next > (Select <custom Location Suffixed> in the server dropdown and select the appropriate deployment location) > Finish.
Now does the war file generated contain the jars?
MaxRahderMemberThanks for looking into this for me.
Yes, the JARs are there. (They were also in the “exploded” application that was deployed in the process of following the steps you outlined.)
By the way, I am working on an Apple under OSX. (The MyEclipse version is as noted in my previous note in this thread.)
I’ll include screen shots!
Loyal WaterMemberThis message has not been recovered.
MaxRahderMemberThis message has not been recovered.
Loyal WaterMemberThis message has not been recovered.
MaxRahderMemberThis message has not been recovered.
Loyal WaterMemberThis message has not been recovered.
MaxRahderMemberThis message has not been recovered.
Loyal WaterMemberThis message has not been recovered.
Loyal WaterMemberThis message has not been recovered.
Jean-Michel PargnyMemberThis message has not been recovered.
Loyal WaterMemberThis message has not been recovered.
-
AuthorPosts