What are some Maven project naming conventions for web application module?

Posted by Jared Pearson on Stack Overflow See other posts from Stack Overflow or by Jared Pearson
Published on 2010-03-27T11:28:12Z Indexed on 2010/03/27 11:33 UTC
Read the original article Hit count: 235

When creating a project with the webapp archetype in Maven, they subtly advise not putting any Java source in the webapp project by not including the "src/main/java" folder.

What do you name your Maven projects?

project-webapp for the project that contains the JSP, CSS, Images, etc.
project for the project that contains domain specific entities
? for the project that contains the web application files like Servlets, Listeners, etc.

My first inclination would be to use "webapp" for the project containing the web application files (Servlets/Listeners), however the archetype uses "webapp" to convey the JSP/CSS/Images project and would cause confusion to other developers.

© Stack Overflow or respective owner

Related posts about maven

Related posts about standards