<?xml version="1.0" encoding="UTF-8"?>
<!--
 * The contents of this file are subject to the terms of the Common Development and
 * Distribution License (the License). You may not use this file except in compliance with the
 * License.
 *
 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
 * specific language governing permission and limitations under the License.
 *
 * When distributing Covered Software, include this CDDL Header Notice in each file and include
 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
 * Header, with the fields enclosed by brackets [] replaced by your own identifying
 * information: "Portions copyright [year] [name of copyright owner]".
 *
 * Copyright 2011-2016 ForgeRock AS.
-->
<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">
    <modelVersion>4.0.0</modelVersion>

    <!-- Parent Project -->
    <parent>
        <groupId>org.openidentityplatform.openam</groupId>
        <artifactId>openam</artifactId>
        <version>16.1.0</version>
    </parent>

    <!-- Component Definition -->
    <name>OpenAM Tools</name>
    <description>OpenAM Tool Components</description>
    <artifactId>openam-tools</artifactId>
    <packaging>pom</packaging>

    <!-- Child Modules -->
    <modules>
        <module>build-helper-plugin</module>
        <module>openam-build-tools</module>
        <module>openam-configurator-tool</module>
        <module>openam-installtools</module>
        <module>openam-installtools-launcher</module>
        <module>openam-upgrade-tool</module>
        <module>openam-license-core</module>
        <module>openam-license-manager-cli</module>
        <module>openam-installer-utils</module>
        <module>openam-license-servlet</module>
    </modules>
    <build>
    		<plugins>
    			<plugin>
				<groupId>org.openidentityplatform.commons</groupId>
				<artifactId>maven-external-dependency-plugin</artifactId>
				<inherited>false</inherited>
				<configuration>
					<stagingDirectory>
						${project.build.directory}/dependencies/
                    </stagingDirectory>
					<createChecksum>false</createChecksum>
					<skipChecksumVerification>true</skipChecksumVerification>
					<force>true</force>
					<artifactItems>
						<artifactItem>
							<groupId>org.openidentityplatform</groupId>
			                <artifactId>cddl-license</artifactId>
			                <version>1.0.0</version>
			                <packaging>txt</packaging>
							<downloadUrl>https://raw.githubusercontent.com/OpenIdentityPlatform/OpenAM/master/LICENSE.md</downloadUrl>
                        	</artifactItem>
 					</artifactItems>
				</configuration>
				<executions>
					<execution>
						<id>clean-external-dependencies</id>
						<phase>clean</phase>
						<goals>
							<goal>clean-external</goal>
						</goals>
					</execution>
					<execution>
						<id>resolve-install-external-dependencies</id>
						<phase>process-resources</phase>
						<goals>
							<goal>resolve-external</goal>
							<goal>install-external</goal>
						</goals>
					</execution>
<!-- 					<execution> -->
<!-- 						<id>deploy-external-dependencies</id> -->
<!-- 						<phase>deploy</phase> -->
<!-- 						<goals> -->
<!-- 							<goal>deploy-external</goal> -->
<!-- 						</goals> -->
<!-- 					</execution> -->
				</executions>
			</plugin>
    		</plugins>
    </build>
</project>

