- This topic has 3 replies, 3 voices, and was last updated 18 years, 2 months ago by Craig Peters.
-
AuthorPosts
-
Craig PetersMemberThis may not be a MyEclipse question, but I’ll start here anyway….
MyEclipse exploded deploy by default deploys JARs on the the build path to Tomcat. That’s fine in a development mode. And I understand that can be controlled if desired.
However, when we are done with development and want to deploy the project as a WAR to our server environment, its configured completely different. We don’t want JARs in the WAR file in that case. Using the standard Eclipse Export/WAR function adds JARs to the WAR.
How are others doing this? There aren’t any options to control what goes in the WAR that I can see.
Thanks,
-CraigEclipse 3.2
MyEclipse 5.0.1
Windows XP SP2 for development
Riyad KallaMemberCraig,
I can’t provide a workaround for you in the case of needing two different rule sets depending on how you deploy the project, but we are going to be adding deployment exclusion filters soon but you would still need to check and uncheck those resources each time you wanted to make a production deployment.
stanquinnMemberI’m deploying to jboss using Eclipse 3.2 and MyEclipse 5.0.1 for the most part. Right click the war project view the properties. There should be a Myeclipse option, then the Web suboption. There should be a deployment tab there. Click on it. Unclick the Use defaults and turn off all the options for automatically deploying jars ….make sure “ignore dependent projects” is clicked if you don’t want them jarred and thrown in. Now just include whatever jars you want manually in the war’s lib directory. This way you can still include whatever jars you want in the build path and control what jars get deployed. Hope this helps.
Craig PetersMemberThanks Stan,
Yeah, I had thought of that too. We have I guess 2 deployment “profiles” — one to your local workstations app server for development/debugging (exploded deploy), and one to our real server environment (WAR). I guess I was looking for a way to switch back and forth without having to change all the options like you mentioned.
Eclipse comes with the Export as WAR feature, and I was hoping someone had figured out a way to configure what it deployed.
Thanks,
-Craig -
AuthorPosts