开发者

Eclipse is constantly redeploying my web project to tomcat

Following this question (in short:开发者_StackOverflow中文版 I have created a web project with maven and I am deploying it to tomcat with eclipse).

Eclipse is redeploying and redploying my project non stop. The project seems to work, but this is very annoying. At the beggining I thought that eclipse is eagerly deploying the project after my edits, but it happens even if I don't touch the keyboard.

Any ideas?


In servers tab double click on your server. The config page should open. Now click on the modules tab in that page. Select the web module from the table in that tab and edit it. De-select "Auto Reloading Enabled" there.


Some file inside your Eclipse project is been changed constantly. Are you sure that your webapp isn't constantly updating some file which is located in for example the project's webcontent?


I had to disable "Build Automatically" (under Project menu) to get this to stop. Thankfully it is easy to turn back on when I need to ensure that my workspace is fully built.

I suspect the 'why' has to do with eclipse's building of the project, vs maven's building of 'target'. The time stamps are never the same, so Eclipse tries to build again to catch up.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜