<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.glassfish.javaeetutorial</groupId>
    <artifactId>traffic-ear</artifactId>
    <packaging>ear</packaging>
    <name>traffic-ear</name>
	
    <parent>
        <artifactId>traffic</artifactId>
        <groupId>org.glassfish.javaeetutorial</groupId>
        <version>7.0.6</version>
    </parent>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-ear-plugin</artifactId>
                <version>${maven.ear.plugin.version}</version>
                <configuration>
                    <finalName>traffic-ear</finalName>
                    <defaultLibBundleDir>lib</defaultLibBundleDir>
                    <modules>
                        <ejbModule>
                            <groupId>org.glassfish.javaeetutorial</groupId>
                            <artifactId>traffic-ejb</artifactId>
                            <bundleFileName>traffic-ejb.jar</bundleFileName>
                        </ejbModule>
                        <rarModule>
                            <groupId>org.glassfish.javaeetutorial</groupId>
                            <artifactId>traffic-rar</artifactId>
                            <bundleFileName>traffic-rar.rar</bundleFileName>
                        </rarModule>
                        <webModule>
                            <groupId>org.glassfish.javaeetutorial</groupId>
                            <artifactId>traffic-war</artifactId>
                            <bundleFileName>traffic-war.war</bundleFileName>
                        </webModule>
                    </modules>
                </configuration>
            </plugin>
        </plugins>
    </build>
  
    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>traffic-ejb</artifactId>
            <version>${project.version}</version>
            <type>ejb</type>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>traffic-rar</artifactId>
            <version>${project.version}</version>
            <type>rar</type>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>traffic-war</artifactId>
            <version>${project.version}</version>
            <type>war</type>
        </dependency>
    </dependencies>
</project>
