Where is the deployment directory in Eclipse?

后端 未结 2 1630
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 06:59

I\'m developing a web app in Eclipse. where is the deployment directory tree situated? In the Apache directory structure or some sub-directory tree structure in my Java work

相关标签:
2条回答
  • 2020-11-30 07:22

    Usually, Eclipse compiles into directories in the workspace. Once the build is complete, this directory is then copied by a deployment plugin into the directory Tomcat uses.

    If you use the WTP plugin bundled in the Eclipse Java EE download, the deployment location is configurable in the server's property page within eclipse.

    0 讨论(0)
  • 2020-11-30 07:31

    I'm developing a web app in Eclipse. where is the deployment directory tree situated? In the Apache directory structure or some sub-directory tree structure in my Java workspace tree?

    It all depends on how your Tomcat Server is configured. The default should be: .metadata/.plugins/org.eclipse.wst.server.core/tmp0. But you can change this in the Tomcat server configuration. To do so, go to the Servers view, double-click on your Tomcat server and modify the Server path and Deploy path:

    alt text

    I personally use the Tomcat installation for full control (and the default deploy path i.e. wtpwebapps).

    If it is not possible to change something in the "Server Locations" section, then see this answer on how to change that.

    0 讨论(0)
提交回复
热议问题