Eclipse publishing to Tomcat

mkoryak picture mkoryak · Oct 20, 2010 · Viewed 30.7k times · Source

I recently came back to using Eclipse after 2 years of IntelliJ. Things have changed.

Now when I try to run Tomcat, it tries to publish my project to it. What the hell is publish?

What ever happened to pushing a war into the webapps directory and letting Tomcat deploy it?

Right now my deployment is broken because of compilation errors. I have a feeling that Eclipse is taking my project and copying it to webapps dir without first building it properly.

Can someone explain to me what exactly publishing does, and also how to turn it off and use Tomcat like normal people?

Answer

Tomas Narros picture Tomas Narros · Oct 20, 2010

A the "Servers" view, you can double click on your Tomcat instance, to open the server settings editor.

There, at the upper right corner, you can find the Publishing options. Check the "Never publish automatically" option, and save.

With this it should be enough.

Oh, and by "Publishing", they kind of mean "Deploying", or "Copying to the deploy directory", depending on what server you are using.