Developping JEE projects with Maven
Since the beginning of this tutorial, we have only covered projects capable of generating onebasic Jar archive. It doesn't apply wery well to server-side projects. As you might guess, Maven offers a lot more and supports out of the box any standard JEE packaging type. This trail explains step-by-step how to get started in JEE development using Maven to manage your project.
- Multi-modules projects: Usually developpers work concurrently on more then one project at a time. In fact, a project is usually splitted into several sub-projects for architectural reasons. Multi-modules projects avoid you the pain to have to rebuild each sub-project individually after every little modifications you make.
- Web projects: The most common type of modules people work with in a JEE project is a web module. Traditionally, a web application is composed of static and dynamic web pages, Java source code, specific configuration files, client-side scripts and of some resources (images, css).
- EJB 1&2 projects: Even if the EJB specifications 1.x and 2.x were the sources of much controversy, a lot of JEE projects are still using them heavily. As you will see in this lesson, Maven can help you greatly to deal with some of the inherent complexities of EJB modules.
- EJB 3 projects: EJB3 specification promises to bring much needed simplicity and lightness to the EJB world. Even if the final specification has still not been released, Maven supports PAR modules projects.
- Packaging everything together: Now that you have produced all the required modules, you still have to package them together in a valid JEE archive. This can be achieved by creating an EAR module project.
- [Introducing cargo and containers plugins would fit very well here]