How to change the default deploy directory of Tomcat in Eclipse

By default, web applications are deployed under this path: “WORKSPACE/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps” .

Here below we define the needed steps to change the default deploy directory of Tomcat in Eclipse.

1- Custom Deploy Directory

Follow the steps below to change the default deploy directory of Tomcat in Eclipse.

  • Open servers view
  • Double-click on tomcat server, the following overview tab is opened:

Eclipse Tomcat Overview

  • Select “use custom location” radio button in the “Server Locations” section and set your custom deploy path.

If “Server Locations” section is disabled, follow the steps below to enable it:

  • Right-click tomcat server -> Properties
  • Then click on “Switch Location” button as the following:

Tomcat Switch Location

 

Hussein Terek

Founder of programmergate.com, I have a passion in software engineering and everything related to java environment.

You may also like...

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
aar Recent comment authors
newest oldest most voted
aar
Guest
aar

trtgr