- Project Structure
- Directory Structure
- Duplication is Wasteful
- util Project
- web Project
- ejb Project
- Wrapping it All Up
- Conclusion
Directory Structure
Each of these subprojects gets its own directory structure and maven configuration files. Each subproject must be able to be built on its own without requiring a recompilation of the other subprojects. Although interdependency among the projects is necessary, it should not require recompilation in addition to that interdependency.
Therefore, the top-level directory structure is as follows:
project +--util +--common +--web +--ejb
In addition to the projects listed here, there is also a directory called common, which will be used to store the properties and configurations that are common among all of the subprojects.
Inside of each of the subprojects (util, web, and ejb) there is a full Maven directory structure. Both util and ejb have the following simple structure:
{subproject} +--src +--java
The web project has the following structure:
web +--src +--java +--webapp +--WEB-INF
The additional directory under src contains all the JSP files and other web-specific files.