[英]Configure WTP plugin to handle non-standard project structure
I have a web app project that looks like this: 我有一个网络应用程序项目,如下所示:
Project/
src/main/java/...
src/main/resources/...
target/MyProject-0.01-SNAPSHOT/
META_INF/...
WEB-INF/...
App.html
App.css
etc..
I want to start Tomcat from within Eclipse. 我想从Eclipse中启动Tomcat。
In the past when I've done web-apps the stuff that Tomcat is interested in is available in a war/
directory in the root of my project. 过去,当我完成网络应用程序后,Tomcat感兴趣的内容就位于项目根目录下的
war/
目录中。
The WTP plugin seems to know to copy the contents of that into a hidden tomcat directory ( wtpwebapps
) in my workspace, then it starts Tomcat. WTP插件似乎知道将其内容复制到我的工作区中隐藏的tomcat目录(
wtpwebapps
)中,然后启动Tomcat。
Now, however, it doesn't seem to be copying anything, which I suspect is because it doesn't know that it's actually in target/MyProject-0.01-SNAPSHOT/
. 但是现在,它似乎并没有复制任何内容,我怀疑这是因为它不知道它实际上在
target/MyProject-0.01-SNAPSHOT/
。
How do I tell Eclipse/WTP where the root of my application is? 如何告诉Eclipse / WTP应用程序的根目录在哪里?
最终,我找到了它-它由“项目”->“属性”->“部署程序集”页面控制。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.