<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
  ~ and other contributors as indicated by the @author tags.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<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/maven-v4_0_0.xsd">
    <parent>
        <artifactId>keycloak-examples-demo-parent</artifactId>
        <groupId>org.keycloak</groupId>
        <version>4.8.0.Final-SNAPSHOT</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.keycloak.example.demo</groupId>
    <artifactId>customer-portal-example-ear</artifactId>
    <packaging>ear</packaging>
    <name>EAR example</name>
    <description>EAR contains customer and product portals.</description>

    <repositories>
        <repository>
            <id>jboss</id>
            <name>jboss repo</name>
            <url>https://repository.jboss.org/nexus/content/groups/public/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>org.keycloak.example.demo</groupId>
            <artifactId>customer-portal-example</artifactId>
            <type>war</type>
        </dependency>
        <dependency>
            <groupId>org.keycloak.example.demo</groupId>
            <artifactId>product-portal-example</artifactId>
            <type>war</type>
        </dependency>
    </dependencies>

    <build>
        <finalName>example-portal</finalName>
        <plugins>
            <plugin>
                <artifactId>maven-ear-plugin</artifactId>
                <version>2.9.1</version>
                <configuration>
                    <modules>
                        <webModule>
                            <groupId>org.keycloak.example.demo</groupId>
                            <artifactId>customer-portal-example</artifactId>
                            <uri>customer-portal.war</uri>
                            <contextRoot>/customer-portal</contextRoot>
                        </webModule>
                        <webModule>
                            <groupId>org.keycloak.example.demo</groupId>
                            <artifactId>product-portal-example</artifactId>
                            <uri>product-portal.war</uri>
                            <contextRoot>/product-portal</contextRoot>
                        </webModule>
                    </modules>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
