简体   繁体   中英

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.
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.
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.
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/ .

How do I tell Eclipse/WTP where the root of my application is?

最终,我找到了它-它由“项目”->“属性”->“部署程序集”页面控制。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM