Enterprise Java Development@TOPIC@

Chapter 12. Maven Modules

12.1. POM Inheritance
12.2. Submodules

<project>
    <parent>
        <groupId>info.ejava.examples.ejb</groupId>
        <artifactId>ejb</artifactId>
        <version>5.0.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>ejbsessionBank</artifactId>
    <packaging>pom</packaging>

    <name>EJB::Session EJB Bank Example</name>
    <description>
        This project is the root project for the core session bean example.
    </description>
    <modules>
        <module>ejbsessionBankImpl</module>
        <module>ejbsessionBankEJB</module>
        <module>ejbsessionBankWAR</module>
        <module>ejbsessionBankEAR</module>
        <module>ejbsessionBankTest</module>
    </modules>
</project>

The example above has several child modules that it will build in the order they are specified.