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
You mail project is Java project. To build war you need Dynamic Web Project
In Web project that you will create, set mail/war as a content directory
(instead of default WebContent
).
Refactor->Move mail/www
directory to mail/war/www
When you export WAR, make sure you include source code.
Now if you export WAR
, it will contain what you asked for.