Eclipse Output Folders

后端 未结 6 466
滥情空心
滥情空心 2020-12-21 07:38

With following structure, how can I make Eclipse build the WAR file correctly?

I need following folders to go into following output folders:

mail/src

6条回答
  •  温柔的废话
    2020-12-21 08:12

    1. You mail project is Java project. To build war you need Dynamic Web Project

    2. In Web project that you will create, set mail/war as a content directory (instead of default WebContent).

    3. Refactor->Move mail/www directory to mail/war/www

    4. When you export WAR, make sure you include source code.

    Now if you export WAR, it will contain what you asked for.

提交回复
热议问题