<?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/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>net.shibboleth</groupId>
        <artifactId>parent</artifactId>
        <version>17.1.6</version>
    </parent>

    <name>Jetty: Plugin Parent Project</name>
    <description>
        Parent project for building a Jetty plugin
        which deploys a appropriate jetty-base (as a module).
        The module also has commands to dowbnload jetty and procrun (on windows)
    </description>
    <groupId>net.shibboleth.idp.plugin.jetty-base</groupId>
    <artifactId>jetty-base-plugin-parent</artifactId>
    <packaging>pom</packaging>
    <version>1.0.1-SNAPSHOT</version>

    <properties>
        <idp.groupId>net.shibboleth.idp</idp.groupId>
        <idp.version>5.1.0</idp.version>
	<jetty-base.version>12.1.1-SNAPSHOT</jetty-base.version>
        <shib-shared.groupId>net.shibboleth</shib-shared.groupId>

        <shib-profile.groupId>net.shibboleth</shib-profile.groupId>
        <shib-profile.version>5.1.0</shib-profile.version>

        <maven-dist-enforcer-data.version>2.0.1</maven-dist-enforcer-data.version>
    </properties>

    <dependencies/>

    <dependencyManagement>
        <dependencies>
            <!-- Import Dependencies:  Shib-Metadata/Attribute/Profile -->
            <dependency>
                <groupId>${shib-profile.groupId}</groupId>
                <artifactId>shib-profile-bom</artifactId>
                <version>${shib-profile.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!-- Import IdP -->
            <dependency>
                <groupId>${idp.groupId}</groupId>
                <artifactId>idp-bom</artifactId>
                <version>${idp.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <modules>
        <module>jetty-cli</module>
        <module>jetty-impl</module>
        <module>jetty-dist</module>
    </modules>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <Implementation-Title>${project.artifactId}</Implementation-Title>
                            <Implementation-Version>${project.version}</Implementation-Version>
                            <Implementation-Vendor>shibboleth.net</Implementation-Vendor>
                            <Automatic-Module-Name>${automatic.module.name}</Automatic-Module-Name>
                            <Sealed>true</Sealed>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
