如何在 Eclipse Web 项目中禁用“自动部署”到服务器功能
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1170391/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to disable the "autodeploy" to server feature in an Eclipse web project
提问by Brummo
I am using Eclipse (J2EE Galileo) and have created a dynamic web project and associated it with a server (JBoss).
我正在使用 Eclipse (J2EE Galileo) 并创建了一个动态 Web 项目并将其与服务器 (JBoss) 相关联。
Now, whenever I make changes to one of my JSP pages, Eclipse will build and autodeploy the WAR file to the server. This is sometimes useful, but sometimes more in the way for me.
现在,每当我对 JSP 页面之一进行更改时,Eclipse 都会构建 WAR 文件并将其自动部署到服务器。这有时很有用,但有时对我来说更麻烦。
I would like to disable this feature, and instead just use the "publish" feature to deploy whenever I want. I still want to run the server from within Eclipse.
我想禁用此功能,而只是在需要时使用“发布”功能进行部署。我仍然想从 Eclipse 中运行服务器。
But I cannot find a setting for this, can someone give me a hint?
但是我找不到这个设置,有人可以给我一个提示吗?
回答by Serxipc
Open the servers view. (Window -> Show view -> Servers)
打开服务器视图。(窗口 -> 显示视图 -> 服务器)
From the servers view open your server configuration and will show a page with your server name, runtime environment, etc.
从服务器视图打开您的服务器配置,将显示一个页面,其中包含您的服务器名称、运行时环境等。
In that page there will be a collapsed panel titled 'publishing' that let's you configure when to publish or disable the automatic publishing.
在该页面中将有一个名为“发布”的折叠面板,让您可以配置何时发布或禁用自动发布。
回答by Jonas_Hess
回答by cssmaniac
Under Project -> Build automatically has to be unchecked.
在 Project -> Build automatic 下必须取消选中。