<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  ~
  ~ Copyright 2011-2016 ForgeRock AS. All Rights Reserved
  ~
  ~ 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
  ~ http://forgerock.org/license/CDDLv1.0.html
  ~ See the License for the specific language governing
  ~ permission and limitations under the License.
  ~
  ~ When distributing Covered Code, include this CDDL
  ~ Header Notice in each file and include the License file
  ~ at http://forgerock.org/license/CDDLv1.0.html
  ~ If applicable, add the following below the CDDL Header,
  ~ with the fields enclosed by brackets [] replaced by
  ~ your own identifying information:
  ~ "Portions Copyrighted [year] [name of copyright owner]"
  ~
  ~ Portions Copyrighted 2024 3A Systems LLC.
  -->
<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>org.openidentityplatform.openidm</groupId>
        <artifactId>openidm-project</artifactId>
        <version>6.0.0</version>
    </parent>
    <artifactId>openidm-zip</artifactId>
    <name>OpenIDM ZIP file assembly</name>
    <packaging>pom</packaging>
    <repositories>
        <repository>
            <id>com.springsource.repository.bundles.release</id>
            <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
            <url>https://repository.springsource.com/maven/bundles/release</url>
        </repository>
        <repository>
            <id>com.springsource.repository.bundles.external</id>
            <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
            <url>https://repository.springsource.com/maven/bundles/external</url>
        </repository>
    </repositories>
    <properties>
        <forgerock.license.output.dir>${project.build.directory}</forgerock.license.output.dir>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-audit</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-config</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-core</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-shell</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-external-rest</artifactId>
            <version>${project.version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-external-email</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-jetty-fragment</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-policy</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-provisioner-openicf</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-repo-orientdb</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-repo-jdbc</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-script</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-api-servlet</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-servlet</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-authnfilter</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-servlet-registrator</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-scheduler</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-infoservice</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-customendpoint</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-security-jetty</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-security</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-ui-enduser</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-ui-admin</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-ui-api</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-smartevent</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-selfservice</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-workflow-activiti</artifactId>
            <version>${project.version}</version>
        </dependency>
<!--         <dependency> -->
<!--             <groupId>org.openidentityplatform.openidm</groupId> -->
<!--             <artifactId>openidm-maintenance</artifactId> -->
<!--             <version>${project.version}</version> -->
<!--         </dependency> -->
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-identity-provider</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-messaging</artifactId>
            <version>${project.version}</version>
        </dependency>
        <!--dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-workflow-remote</artifactId>
            <version>${project.version}</version>
            <type>war</type>
        </dependency-->
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-workflow-activiti</artifactId>
            <version>${project.version}</version>
            <classifier>jar-with-dependencies</classifier>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-cluster</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm.tools</groupId>
            <artifactId>custom-scripted-connector-bundler</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openidm</groupId>
            <artifactId>openidm-felix-webconsole</artifactId>
            <version>${project.version}</version>
        </dependency>

        <!-- Core OSGi -->
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>osgi.cmpn</artifactId>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.util.promise</artifactId>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.util.function</artifactId>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.util.pushstream</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.framework</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.shell</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.shell.tui</artifactId>
        </dependency>

        <!-- Apache Felix Web Console -->
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.webconsole</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.webconsole.plugins.ds</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.webconsole.plugins.event</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.webconsole.plugins.memoryusage</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.webconsole.plugins.obr</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.webconsole.plugins.packageadmin</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.bundles</groupId>
            <artifactId>json</artifactId>
            <version>20090211_1</version>
        </dependency>
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.2</version>
        </dependency>
        <!-- other Felix -->
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.configadmin</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.eventadmin</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.metatype</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>osgi.core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>osgi.cmpn</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>net.sf.kxml</groupId>
                    <artifactId>kxml2</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.inventory</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.log</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.fileinstall</artifactId>
        </dependency>

        <!-- Declarative Services support -->
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.scr</artifactId>
        </dependency>

        <!-- Pax Dependencies -->
        <dependency>
            <groupId>org.ops4j.base</groupId>
            <artifactId>ops4j-base-lang</artifactId>
            <version>1.5.0</version>
        </dependency>

        <!--
                <dependency>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>org.apache.felix.http.jetty</artifactId>
                    <version>2.0.4</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>org.apache.felix.http.whiteboard</artifactId>
                    <version>2.0.4</version>
                </dependency>
        -->

        <!-- Commons logging used by http client -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
        </dependency>

        <!-- ForgeRock commons -->
        <dependency>
            <groupId>org.openidentityplatform.commons.launcher</groupId>
            <artifactId>launcher-zip</artifactId>
            <type>zip</type>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.commons.script</groupId>
            <artifactId>javascript</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.commons.script</groupId>
            <artifactId>groovy</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.commons.audit</groupId>
            <artifactId>handler-csv</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.commons.audit</groupId>
            <artifactId>handler-elasticsearch</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.commons.audit</groupId>
            <artifactId>handler-json</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.commons.audit</groupId>
            <artifactId>handler-splunk</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.commons.audit</groupId>
            <artifactId>handler-jms</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.commons.audit</groupId>
            <artifactId>handler-syslog</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.commons.http-framework</groupId>
            <artifactId>core</artifactId>
        </dependency>

        <!-- OpenICF -->
        <dependency>
            <groupId>org.openidentityplatform.openicf.framework</groupId>
            <artifactId>connector-framework</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openicf.framework</groupId>
            <artifactId>icfl-over-slf4j</artifactId>
        </dependency>
        <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-all</artifactId>
        </dependency>
<!--         <dependency> -->
<!--             <groupId>org.glassfish.grizzly</groupId> -->
<!--             <artifactId>grizzly-framework</artifactId> -->
<!--             <version>2.3.35</version> -->
<!--         </dependency> -->
        <dependency>
            <groupId>org.ops4j.pax.swissbox</groupId>
            <artifactId>pax-swissbox-extender</artifactId>
            <version>1.8.2</version>
            <exclusions>
                <exclusion>
                    <artifactId>pax-swissbox-optional-jcl</artifactId>
                    <groupId>org.ops4j.pax.swissbox</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- Paxweb 4.2.4 Dependencies -->
        <dependency>
            <groupId>org.ops4j.pax.web</groupId>
            <artifactId>pax-web-spi</artifactId>
            <version>${paxweb.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.xbean</groupId>
            <artifactId>xbean-finder</artifactId>
            <version>${xbean.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.xbean</groupId>
                    <artifactId>xbean-asm-util</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm</artifactId>
            <version>${asm.version}</version>
        </dependency>
        <dependency>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm-commons</artifactId>
            <version>${asm.version}</version>
        </dependency>
        <dependency>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm-tree</artifactId>
            <version>${asm.version}</version>
        </dependency>
        <dependency>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm-util</artifactId>
            <version>${asm.version}</version>
        </dependency>
        <dependency>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm-analysis</artifactId>
            <version>${asm.version}</version>
        </dependency>

        <!-- OpenICF Connectors -->
        <dependency>
            <groupId>org.openidentityplatform.openicf.connectors</groupId>
            <artifactId>xml-connector</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openicf.connectors</groupId>
            <artifactId>csvfile-connector</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openicf.connectors</groupId>
            <artifactId>ldap-connector</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openicf.connectors</groupId>
            <artifactId>databasetable-connector</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openicf.connectors</groupId>
            <artifactId>groovy-connector</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openicf.connectors</groupId>
            <artifactId>ssh-connector</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.openicf.connectors</groupId>
            <artifactId>kerberos-connector</artifactId>
        </dependency>
        <!-- tomcat-jdbc and juli needed for scriptedsql 1.4 -->
        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat-jdbc</artifactId>
            <version>7.0.53</version>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.ext.tomcat</groupId>
            <artifactId>juli</artifactId>
            <version>7.0.39.2</version>
        </dependency>
        <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>javax.annotation-api</artifactId>
            <version>1.2</version>
        </dependency>

        <!-- jdbc drivers -->
<!--         <dependency> -->
<!--             <groupId>org.postgresql</groupId> -->
<!--             <artifactId>postgresql-fr-osgi</artifactId> -->
<!--             <version>9.3-1101-jdbc41</version> -->
<!--         </dependency> -->
    		<dependency>
		    <groupId>org.postgresql</groupId>
		    <artifactId>postgresql</artifactId>
		    <version>42.2.2</version>
		</dependency>
        <!-- Javascript libraries -->
        <dependency>
            <groupId>org.openidentityplatform.commons.ui.libs</groupId>
            <artifactId>lodash</artifactId>
            <version>2.4.1</version>
            <classifier>min</classifier>
            <type>js</type>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.commons.ui.libs</groupId>
            <artifactId>handlebars</artifactId>
            <version>4.0.5</version>
            <type>js</type>
        </dependency>

        <!-- Scripted REST Groovy dependencies -->
        <dependency>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils</artifactId>
            <version>1.9.3</version>
            <exclusions>
            	<exclusion>
            		<groupId>commons-logging</groupId>
            		<artifactId>commons-logging</artifactId>
            	</exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.codehaus.groovy.modules.http-builder</groupId>
            <artifactId>http-builder</artifactId>
            <version>0.7.1</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpcore</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpclient</artifactId>
                </exclusion>
                <exclusion>
	                	<groupId>commons-logging</groupId>
	                	<artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- ldap connector dependencies -->
         <dependency>
            <groupId>org.openidentityplatform.opendj</groupId>
            <artifactId>opendj-server</artifactId>
        </dependency>
        <dependency>
            <groupId>org.openidentityplatform.opendj</groupId>
            <artifactId>opendj-grizzly</artifactId>
        </dependency>

        <!-- scriptedazure sample Groovy dependencies -->
        <dependency>
            <groupId>org.apache.olingo</groupId>
            <artifactId>odata-client-core</artifactId>
            <version>4.0.0-beta-01</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpclient</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.fasterxml</groupId>
            <artifactId>aalto-xml</artifactId>
            <version>0.9.9</version>
        </dependency>
        <dependency>
            <groupId>org.codehaus.woodstox</groupId>
            <artifactId>stax2-api</artifactId>
            <version>4.2.1</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.dataformat</groupId>
            <artifactId>jackson-dataformat-xml</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.woodstox</groupId>
                    <artifactId>woodstox-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.module</groupId>
            <artifactId>jackson-module-jaxb-annotations</artifactId>
        </dependency>

        <!-- ssh / kerberos connector dependencies -->
        <dependency>
            <groupId>com.github.cverges</groupId>
            <artifactId>expect4j</artifactId>
            <version>1.9</version>
        </dependency>
        <dependency>
            <groupId>oro</groupId>
            <artifactId>oro</artifactId>
            <version>2.0.8</version>
        </dependency>
        <dependency>
            <groupId>com.jcraft</groupId>
            <artifactId>jsch</artifactId>
            <version>0.1.53</version>
        </dependency>

        <!-- Dependency overrides to replace out-of-date transitive dependencies -->
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <version>3.2.2</version>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.6</version>
        </dependency>
        <!-- Test Dependencies -->
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <finalName>openidm-${project.version}</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>resources</id>
                        <goals>
                            <goal>resources</goal>
                            <goal>testResources</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <executions>
                    <execution>
                        <id>compiler</id>
                        <goals>
                            <goal>testCompile</goal>
                        </goals>

                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-test</id>
                        <goals>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack-orientdb-studio</id>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>com.orientechnologies</groupId>
                                    <artifactId>orientdb-community</artifactId>
                                    <version>${orientdb.studio.version}</version>
                                    <type>zip</type>
                                    <classifier>distribution</classifier>
                                    <overWrite>false</overWrite>
                                    <outputDirectory>${project.build.directory}/</outputDirectory>
                                    <includes>**/www/**,**/plugins/studio-*.zip</includes>
                                </artifactItem>
                            </artifactItems>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>false</overWriteSnapshots>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack-studio-ui</id>
                        <phase>prepare-package</phase>
                        <configuration>
                            <target>
                                <unzip dest="${project.build.directory}/orientdb-community-${orientdb.studio.version}">
                                    <fileset dir="${project.build.directory}/orientdb-community-${orientdb.studio.version}\plugins">
                                        <include name="studio-**.zip" />
                                    </fileset>
                                </unzip>
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>zip-workflow-files</id>
                        <phase>prepare-package</phase>

                        <configuration>
                            <target>
                                <zip basedir="${basedir}/src/main/resources/samples/usecase/workflow" destfile="${project.build.directory}/bar-files/samples/usecase/workflow/certificationRoles.bar" includes="certificationRoles*" />

                                <zip basedir="${basedir}/src/main/resources/samples/usecase/workflow" destfile="${project.build.directory}/bar-files/samples/usecase/workflow/certificationEntitlements.bar" includes="certificationEntitlements*" />

                                <zip basedir="${basedir}/src/main/resources/samples/usecase/workflow" destfile="${project.build.directory}/bar-files/samples/usecase/workflow/manualMatch.bar" includes="manualMatch*" />

                                <zip basedir="${basedir}/src/main/resources/samples/usecase/workflow" destfile="${project.build.directory}/bar-files/samples/usecase/workflow/newUserCreate.bar" includes="newUserCreate.bpmn20.xml,nUC*.xhtml" />

                                <zip basedir="${basedir}/src/main/resources/samples/workflow/workflow" destfile="${project.build.directory}/bar-files/samples/workflow/workflow/chess.bar" includes="chess*" />

                                <zip basedir="${basedir}/src/main/resources/samples/workflow/workflow" destfile="${project.build.directory}/bar-files/samples/workflow/workflow/contractorOnboarding.bar" includes="contractor*" />

                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <appendAssemblyId>false</appendAssemblyId>
                    <descriptors>
                        <descriptor>src/main/assembly/zip.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>zip-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!--plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jslint-maven-plugin</artifactId>
                <configuration>
                    <assumeRhino>true</assumeRhino>
                    <predefinedVars>request,openidm,identityServer,java,logger</predefinedVars>
                    <sourceJsFolder>src/main/resources</sourceJsFolder>
                    <tolerateEval>true</tolerateEval>
                    <excludes>
                        <exclude>**/libs/*.js</exclude>
                    </excludes>
                </configuration>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>jslint</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin-->
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>production-build</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <openidm.options>

                </openidm.options>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-jdk14</artifactId>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>experimental-build</id>
            <activation>
	            <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <openidm.options>
                    -Dlogback.configurationFile=conf/logging-config.groovy
                </openidm.options>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>ch.qos.logback</groupId>
                    <artifactId>logback-classic</artifactId>
                    <scope>compile</scope>
                </dependency>
            </dependencies>
        </profile>
    </profiles>
</project>
