<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.atlassian.jira.plugins</groupId>
    <artifactId>jira-plugins-bundle</artifactId>
    <version>112.0.36-bc90dff</version>
  </parent>
  <groupId>com.atlassian.jira.plugins</groupId>
  <artifactId>jira-importers</artifactId>
  <version>112.0.36-bc90dff</version>
  <packaging>pom</packaging>
  <name>Jira Importers Plugin (JIM)</name>
  <description>A plugin which provides capability to import to Jira issues from CSV and JSON formats</description>
  <licenses>
    <license>
      <name>Atlassian 3.0 End User License Agreement</name>
      <url>http://www.atlassian.com/end-user-agreement/</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <modules>
    <module>jim</module>
    <module>jim-bridge-parent</module>
    <module>jim-tests</module>
    <module>jim-func-tests</module>
  </modules>
  <issueManagement>
    <system>Jira</system>
    <url>https://ecosystem.atlassian.net/browse/JIM</url>
  </issueManagement>
  <properties>
    <jira-servicedesk-internal-api.version>22.0.0-QR-0067</jira-servicedesk-internal-api.version>
    <jvmOpens></jvmOpens>
    <atlassian.test.target.dir>${project.build.directory}</atlassian.test.target.dir>
    <failOnMilestoneOrReleaseCandidateDeps>true</failOnMilestoneOrReleaseCandidateDeps>
    <skipJacocoReport>false</skipJacocoReport>
    <atlassian.uwc.version>3.13.0</atlassian.uwc.version>
    <jim.bridge.jira.71.version>${jira.version}</jim.bridge.jira.71.version>
    <atlassian-pocketknife-api-commons-jira.version>1.0.10</atlassian-pocketknife-api-commons-jira.version>
    <xvfb.enable>true</xvfb.enable>
  </properties>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>com.atlassian.plugin</groupId>
          <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
          <version>${atlassian.spring.scanner.version}</version>
          <executions>
            <execution>
              <phase>process-classes</phase>
              <goals>
                <goal>atlassian-spring-scanner</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <verbose>false</verbose>
          </configuration>
        </plugin>
        <plugin>
          <groupId>com.atlassian.maven.plugins</groupId>
          <artifactId>jira-maven-plugin</artifactId>
          <version>${amps.version}</version>
          <extensions>true</extensions>
          <configuration>
            <enableQuickReload>true</enableQuickReload>
            <extractDependencies>false</extractDependencies>
            <skipManifestValidation>true</skipManifestValidation>
            <excludeAllTestDependencies>true</excludeAllTestDependencies>
            <containerId>${amps.containerId}</containerId>
            <products>
              <product>
                <id>jira</id>
                <version>${jira.version}</version>
                <httpPort>2990</httpPort>
                <jvmDebugPort>5005</jvmDebugPort>
              </product>
            </products>
            <applications>
              <application>
                <applicationKey>jira-software</applicationKey>
              </application>
            </applications>
            <pluginArtifacts combine.children="append">
              <pluginArtifact>
                <groupId>${project.groupId}</groupId>
                <artifactId>jira-importers-plugin</artifactId>
                <version>${project.version}</version>
              </pluginArtifact>
              <pluginArtifact>
                <groupId>${project.groupId}</groupId>
                <artifactId>jira-importers-plugin-func-tests</artifactId>
                <version>${project.version}</version>
              </pluginArtifact>
              <pluginArtifact>
                <groupId>com.atlassian.plugins.jstestrunner</groupId>
                <artifactId>atlassian-jstest-runner-plugin</artifactId>
              </pluginArtifact>
              <pluginArtifact>
                <groupId>com.atlassian.jira.tests</groupId>
                <artifactId>jira-testkit-plugin</artifactId>
              </pluginArtifact>
            </pluginArtifacts>
            <libArtifacts>
              <libArtifact>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>8.0.33</version>
              </libArtifact>
              <libArtifact>
                <groupId>postgresql</groupId>
                <artifactId>postgresql</artifactId>
                <version>8.4-702.jdbc4</version>
              </libArtifact>
              <libArtifact>
                <groupId>com.microsoft.sqlserver</groupId>
                <artifactId>mssql-jdbc</artifactId>
                <version>6.2.2.jre8</version>
              </libArtifact>
            </libArtifacts>
            <jvmArgs>${jvmOpens} -Dcom.atlassian.jira.startup.LauncherContextListener.SYNCHRONOUS=true -Xms384m -Xmx1768m</jvmArgs>
            <systemPropertyVariables combine.children="append">
              <xvfb.enable>${xvfb.enable}</xvfb.enable>
              <LC_ALL>en_US.UTF-8</LC_ALL>
              <jira.websudo.is.disabled>true</jira.websudo.is.disabled>
            </systemPropertyVariables>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>3.5.4</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>${jacoco.version}</version>
        <executions>
          <execution>
            <id>prepare-agent-unit-test</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
          <execution>
            <id>report-unit-test</id>
            <phase>test</phase>
            <goals>
              <goal>report</goal>
            </goals>
          </execution>
          <execution>
            <id>prepare-agent-integration-test</id>
            <goals>
              <goal>prepare-agent-integration</goal>
            </goals>
            <configuration>
              <propertyName>jacoco.it.agent</propertyName>
            </configuration>
          </execution>
          <execution>
            <id>report-integration-test</id>
            <phase>post-integration-test</phase>
            <goals>
              <goal>report-integration</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>jvm-opens-activation</id>
      <activation>
        <property>
          <name>env.JVM_OPENS</name>
        </property>
      </activation>
      <properties>
        <jvmOpens>${env.JVM_OPENS}</jvmOpens>
      </properties>
    </profile>
    <profile>
      <id>runWithRenaissance</id>
      <build>
        <plugins>
          <plugin>
            <groupId>com.atlassian.maven.plugins</groupId>
            <artifactId>jira-maven-plugin</artifactId>
            <extensions>true</extensions>
            <configuration>
              <jvmArgs>-Datlassian.darkfeature.com.atlassian.jira.config.CoreFeatures.LICENSE_ROLES_ENABLED=true -Xmx1768m -XX:MaxPermSize=400m</jvmArgs>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>release</id>
      <properties>
        <skipITs>true</skipITs>
        <maven.javadoc.skip>true</maven.javadoc.skip>
      </properties>
    </profile>
    <profile>
      <id>runWithFF23</id>
      <dependencies>
        <dependency>
          <groupId>com.atlassian.selenium</groupId>
          <artifactId>atlassian-webdriver-core</artifactId>
          <version>3.3.0</version>
          <scope>test</scope>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>jira-license-default-dc</id>
      <activation>
        <property>
          <name>jira-license-default</name>
          <value>dc</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>com.atlassian.maven.plugins</groupId>
            <artifactId>jira-maven-plugin</artifactId>
            <configuration>
              <products>
                <product>
                  <id>jira</id>
                  <license>AAACBA0ODAoPeNp9kl1v2jAUhu/zK460OyQHSLuVIkUaTbwNVBKUhEnbugsTDuA2sSPbgbFfPxOC1
                                        i+4yEXO5+vnPR+yGiGSW/CuoXc7vBoMvT4ENAOv5/WctUIUG1lVqNx7nqPQSJfccCl8GmU0mSXjl
                                        DpRXS5Qxau5RqV90ncCKQzLTcRK9Eu944Ip/cQ/M1MwrTkTbi5LZ1arfMM0hsyg7/X6A9LvE89z2
                                        j3ZvsJmQBBPpzQJxqP7U4r+qbjaN32zG+/baR2dMl6c35ei2qIah/4dvaHkOvzpkU/x5IZ8vbodO
                                        I9cMbdSclnnxj38EC1XZscUunYy36JvVI3OxGZmbZXdzwIU5lVJWi90rnjVQGoi70B873GNhPOQO
                                        51OFGfkS5yQWRKH8yAbxxGZp9Qm/EChpbGExR7MBqGdAlTkcokK7MMeMTfwa2NM9TDsdtfSfQGnW
                                        xw7CB47frsQShDSwJJro/iiNmgncw1GQl5rI0trtetY4sKgYCJ/Y4qVFSR0lNGQ3P04aDxrTKvWO
                                        jMXT0LuxCU33txaSiPffuRjr3fsO/mC6og/VmsmuGYN0Ij93TFYcVXunQaaDb4+wJbFd7vg0OI5I
                                        f53NENtoK2AlVQwGScjSFt5lrjdWymu8WEIgSwtppyzAsLgxRk8P5hG9PMA3bKiPspdsULjJRwX7
                                        ukf5/NX7TAtAhUAhQSHz9DgycOX7wcwERMJb3TLGb4CFGkB/xUWSRK3BZLrPF9Rn6ZmrUqJX02oc</license>
                </product>
              </products>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
