<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>

    <parent>
        <groupId>net.shibboleth.idp.plugin.authn</groupId>
        <artifactId>idp-plugin-duo-parent</artifactId>
        <version>0.9.1</version>
    </parent>

    <artifactId>idp-plugin-duo-sdk-dist</artifactId>
    <name>Shibboleth IdP :: Plugins :: Duo 2FA Login Flow WebSDK Distribution</name>
    <description>IdP Duo OIDC 2FA plugin packaging.</description>
    <packaging>pom</packaging>

    <properties>
        <checkstyle.configLocation>${project.basedir}/../checkstyle.xml</checkstyle.configLocation>
        <dist.duosdk.finalName>shibboleth-idp-plugin-duo-native-sdk-${project.version}</dist.duosdk.finalName>
    </properties>

    <build>
        <plugins>
            <!-- Assemble -->
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <!-- Duo SDK version -->
                        <id>make-assembly-duo-sdk</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <appendAssemblyId>false</appendAssemblyId>
                            <descriptors>
                                <descriptor>src/main/assembly/duo-native-sdk-assembly.xml</descriptor>
                            </descriptors>
                            <finalName>${dist.duosdk.finalName}</finalName>
                            <tarLongFileMode>gnu</tarLongFileMode>
                        </configuration>
                    </execution>                   
                </executions>
            </plugin>
        </plugins>

    </build>

</project>