The structure of project doesn't matter that much. It is the structute of web archive (war) that matter for a web-server.
You should build and archive you war file as per the standards
Here is the link that explains the structure of a web application