<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>com.atlassian.jira</groupId>
        <artifactId>jira-ondemand-project</artifactId>
        <version>6.2-OD-08-002</version>
    </parent>

    <artifactId>jira-ondemand-webapp</artifactId>
    <packaging>studio-war</packaging>
    <name>Atlassian JIRA - OnDemand - WebApp</name>
    <dependencies>

        <!-- JIRA core -->
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-core</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>atlassian-jira-webapp</artifactId>
            <version>${project.version}</version>
            <type>war</type>
        </dependency>

        <dependency>
            <groupId>com.atlassian.core</groupId>
            <artifactId>atlassian-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.velocity</groupId>
            <artifactId>velocity</artifactId>
        </dependency>

        <!-- JIRA OnDemand -->
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-ondemand-host-components</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-ondemand-ual-plugin</artifactId>
            <version>${project.version}</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-ondemand-theme-plugin</artifactId>
            <version>${project.version}</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-ondemand-jim-bridge-plugin</artifactId>
            <version>${jim.bridge.version}</version>
            <scope>bundled</scope>
        </dependency>

        <!-- OnDemand -->
        <dependency>
            <groupId>com.atlassian.ondemand</groupId>
            <artifactId>ondemand-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.studio</groupId>
            <artifactId>studio-common-host-components</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.studio</groupId>
            <artifactId>ondemand-webapps-common</artifactId>
            <version>${ondemand.core.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jconnect</groupId>
            <artifactId>jconnect-plugin</artifactId>
            <version>1.2.0</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.ondemand.backupmanager</groupId>
            <artifactId>ondemand-backup-manager-jira</artifactId>
            <version>0.30</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bonfire</groupId>
            <artifactId>atlassian-bonfire-plugin</artifactId>
            <version>2.7.1.0</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.flowdock.plugins.jira</groupId>
            <artifactId>flowdock-jira-plugin</artifactId>
            <version>1.60.1</version>
            <scope>bundled</scope>
        </dependency>


        <dependency>
            <groupId>com.google.code.findbugs</groupId>
            <artifactId>jsr305</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bundles</groupId>
            <artifactId>gdata-java-client</artifactId>
            <version>${gdata.client.version}</version>
            <scope>bundled</scope>
        </dependency>


        <dependency>
            <groupId>com.atlassian.jirawallboard</groupId>
            <artifactId>atlassian-wallboard-plugin</artifactId>
            <version>1.8.3</version>
            <scope>bundled</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.peace</groupId>
            <artifactId>peace-jira-plugin</artifactId>
            <version>${peace.version}</version>
            <type>bundle</type>
            <scope>bundled</scope>
        </dependency>
        <dependency>
        <groupId>com.atlassian.jira.ext.charting</groupId>
        <artifactId>jira-charting-plugin</artifactId>
        <version>1.23</version>
        <scope>bundled</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.jira.welcome</groupId>
            <artifactId>jira-ondemand-welcome-plugin</artifactId>
            <version>${welcome.version}</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-ondemand-invite-user-plugin</artifactId>
            <version>${inviteuser.version}</version>
            <scope>bundled</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.ondemand</groupId>
            <artifactId>ondemand-spi-plugin</artifactId>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.ondemand</groupId>
            <artifactId>ondemand-internal-api-plugin</artifactId>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.ondemand</groupId>
            <artifactId>ondemand-license-plugin</artifactId>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.ondemand</groupId>
            <artifactId>ondemand-appstatus-plugin</artifactId>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.studio</groupId>
            <artifactId>studio-common-components-plugin</artifactId>
            <scope>bundled</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.shipit</groupId>
            <artifactId>click-listener-plugin</artifactId>
            <version>1.0.3</version>
            <scope>bundled</scope>
        </dependency>
        <!--<dependency>-->
            <!--<groupId>com.atlassian.jira.plugins</groupId>-->
            <!--<artifactId>jira-greenhopper-plugin</artifactId>-->
            <!--<version>${greenhopper.version}</version>-->
            <!--<scope>bundled</scope>-->
        <!--</dependency>-->
        <dependency>
            <groupId>com.atlassian.util.concurrent</groupId>
            <artifactId>atlassian-util-concurrent</artifactId>
            <version>${atlassian.util.concurrent}</version>
            <scope>bundled</scope>
        </dependency>
        <!-- required by JiraImportProgressFilter -->
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>is.origo</groupId>
            <artifactId>jira-tempo-plugin</artifactId>
            <version>${tempo.version}</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>is.origo</groupId>
            <artifactId>tempo-core</artifactId>
            <version>${tempo.core.version}</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>is.origo</groupId>
            <artifactId>tempo-teams</artifactId>
            <version>${tempo.teams.version}</version>
            <scope>bundled</scope>
        </dependency>
        <!-- jira50 jsu brings in TransitionsSummaryIssueTabPanel, which has a method containing osuser. Blows up
             when the GhettoInitter does reflection as there is no such class... -->
        <dependency>
            <groupId>com.googlecode</groupId>
            <artifactId>jira-suite-utilities</artifactId>
            <version>1.4.7</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.toolkit</groupId>
            <artifactId>jira-toolkit</artifactId>
            <version>0.35.9</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.fdu.jira.plugin</groupId>
            <artifactId>jira-timesheet-plugin</artifactId>
            <version>2.6.3</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.balsamiq.jira.plugins</groupId>
            <artifactId>mockupsJIRA4X</artifactId>
            <version>2.2.11</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.innovalog.jmwe</groupId>
            <artifactId>jira-misc-workflow-extensions</artifactId>
            <version>2.5.5.2</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-calendar-plugin</artifactId>
            <version>2.1.4</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-ondemand-haup-plugin</artifactId>
            <version>${project.version}</version>
            <scope>bundled</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.svnauth</groupId>
            <artifactId>svnauth</artifactId>
            <version>${svnauth.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.startup</groupId>
            <artifactId>atlassian-startup</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.velocity.htmlsafe</groupId>
            <artifactId>velocity-htmlsafe</artifactId>
            <version>${velocity-htmlsafe.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.velocity</groupId>
            <artifactId>velocity-tools</artifactId>
            <version>${velocity-tools.version}</version>
        </dependency>
        <dependency>
            <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>
            <classifier>jdk15</classifier>
            <version>2.2.2</version>
        </dependency>
        <dependency>
            <groupId>net.sf.ezmorph</groupId>
            <artifactId>ezmorph</artifactId>
            <version>1.0.4</version>
        </dependency>
        <!-- JRA-26808/JSTDEV-1543: Fix for a potential StackOverflowError when accessing the JobDataMap of a persistent trigger. Check this on every JIRA upgrade, otherwise we might end up overriding a newer version (fixed in >= 1.6). -->
        <dependency>
            <groupId>quartz</groupId>
            <artifactId>quartz</artifactId>
            <version>1.5.1-atlassian-1</version>
        </dependency>
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>${commons.fileupload.version}</version>
            <scope>dev-bundled</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit-dep</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-all</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.gliffy</groupId>
            <artifactId>jira-gliffy-plugin</artifactId>
            <version>${gliffy.version}</version>
            <scope>bundled</scope>
        </dependency>

        <dependency>
            <groupId>net.customware.plugins.connector.atlassian</groupId>
            <artifactId>jira-connector-plugin</artifactId>
            <version>1.4.3</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>net.customware.plugins.connector.core</groupId>
            <artifactId>core-connector-plugin</artifactId>
            <version>1.4.3</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>net.customware.plugins.connector.getsat</groupId>
            <artifactId>getsat-connector-plugin</artifactId>
            <version>2.2.1</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>net.customware.plugins.connector.salesforce</groupId>
            <artifactId>salesforce-connector-plugin</artifactId>
            <version>5.3.1</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>net.customware.plugins.connector.saucelabs</groupId>
            <artifactId>saucelabs-connector-plugin</artifactId>
            <version>1.4</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>net.customware.plugins.connector.utest</groupId>
            <artifactId>utest-connector-plugin</artifactId>
            <version>1.2.1</version>
            <scope>bundled</scope>
        </dependency>
        <dependency>
            <groupId>net.customware.plugins.connector.zendesk</groupId>
            <artifactId>zendesk-connector-plugin</artifactId>
            <version>2.2.7</version>
            <scope>bundled</scope>
        </dependency>

        <dependency>
            <groupId>com.thed</groupId>
            <artifactId>zephyr-jira5-plugin</artifactId>
            <version>4.5</version>
            <scope>bundled</scope>
        </dependency>

        <dependency>
            <groupId>com.google.code.findbugs</groupId>
            <artifactId>annotations</artifactId>
            <version>${findbugs.version}</version>
            <scope>provided</scope>
        </dependency>
        <!-- workaround for http://jira.atlassian.com/browse/JRA-20715 -->
        <dependency>
            <groupId>org.codehaus.xfire</groupId>
            <artifactId>xfire-java5</artifactId>
            <version>1.2.6</version>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-tests</artifactId>
        </dependency>

        <!-- Analytics plugin -->
        <dependency>
            <groupId>com.atlassian.analytics</groupId>
            <artifactId>analytics-client</artifactId>
            <version>${analytics.version}</version>
            <scope>bundled</scope>
        </dependency>

        <dependency>
            <groupId>com.atlassian.pdkinstall</groupId>
            <artifactId>pdkinstall-plugin</artifactId>
            <version>${atlassian.pdk.plugin.version}</version>
            <scope>dev-bundled</scope>
        </dependency>

        <!-- Shakuni experiments plugin -->
        <dependency>
            <groupId>com.atlassian.growth</groupId>
            <artifactId>experiments-plugin</artifactId>
            <version>1.0</version>
            <scope>bundled</scope>
        </dependency>

        <!-- JIRA ads plugin -->
        <dependency>
            <groupId>com.atlassian.jira.plugins</groupId>
            <artifactId>jira-ads-plugin</artifactId>
            <version>1.2.1</version>
            <scope>bundled</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.8</version>
                <executions>
                    <execution>
                        <id>attach-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>attach-artifact</goal>
                        </goals>
                        <configuration>
                            <artifacts>
                                <artifact>
                                    <file>pom.xml</file>
                                    <type>pom</type>
                                </artifact>
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>studio</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <bundledPluginsDirectory>/WEB-INF/classes</bundledPluginsDirectory>
                    <excludePlugins>
                        <exclude>jira-monitoring-plugin-*.jar</exclude>
                        <exclude>com.springsource.com.sun.syndication-*.jar</exclude>
                    </excludePlugins>
                    <jira.debug.suspend>${jira.debug.suspend}</jira.debug.suspend>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>com.atlassian.studio</groupId>
                                    <artifactId>ondemand-webapps-common</artifactId>
                                    <version>${ondemand.core.version}</version>
                                    <type>jar</type>
                                    <outputDirectory>${project.build.directory}/war/exploded/WEB-INF/classes</outputDirectory>
                                    <includes>**/studio.default.properties</includes>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>start</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.cargo</groupId>
                        <artifactId>cargo-maven2-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>start</goal>
                                </goals>
                                <phase>pre-integration-test</phase>
                            </execution>
                        </executions>
                        <configuration>
                            <wait>${crowd.cargo.wait}</wait>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>validate</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>studio</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>pac-check</goal>
                                </goals>
                                <phase>validate</phase>
                            </execution>
                        </executions>
                        <configuration>
                            <fail>true</fail>
                            <notFoundIgnored>true</notFoundIgnored>
                            <!--
                            JRADEV-9163

                            The PAC check is there to notify us of new plugin releases.  Once we
                            have an issue to track the fact that we need to upgrade to the new
                            release of the plugin, we whitelist it at its current version so
                            that the PAC check passes and only fails when a non-whitelisted
                            plugin is due for update.
                            -->
                            <whitelist>
                                <flowdock-jira-plugin>${flowdock.version}</flowdock-jira-plugin>
                            </whitelist>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>


    <properties>
        <click.listener.version>1.0.3</click.listener.version>
        <jconnect.version>1.2.0</jconnect.version>
        <bonfire.version>2.7.1.0</bonfire.version>
        <core.connector.version>1.4.3</core.connector.version>
        <flowdock.version>1.60.1</flowdock.version>
        <jira.debug.suspend>false</jira.debug.suspend>
        <jsu.version>1.4.7</jsu.version>
        <timesheet.version>2.6.3</timesheet.version>
        <velocity.tools.version>1.3</velocity.tools.version>
        <balsamiq.version>2.2.11</balsamiq.version>
        <ondemand.backup.version>0.30</ondemand.backup.version>
        <wallboards.version>1.8.3</wallboards.version>
        <charting.version>1.23</charting.version>
        <toolkit.version>0.35.9</toolkit.version>
        <jira.ads.version>1.2.1</jira.ads.version>
        <workflow.extension.version>2.5.5.2</workflow.extension.version>
        <calendar.version>2.1.4</calendar.version>
        <connector.jira.version>1.4.3</connector.jira.version>
        <getsat.version>2.2.1</getsat.version>
        <connector.salesforce.version>5.3.1</connector.salesforce.version>
        <connector.saucelabs.version>1.4</connector.saucelabs.version>
        <connector.utest.version>1.2.1</connector.utest.version>
        <connector.zendesk.version>2.2.7</connector.zendesk.version>
        <zephyr.version>4.5</zephyr.version>
        <unicorn.app.name>jira</unicorn.app.name>

        <od.testing.configuration>
            retrieve-effective-pom
            include-artifact,com.atlassian.jira:jira-ondemand-acceptance-tests
            include-artifact,com.atlassian.jira:jira-webdriver-tests
            include-artifact,com.atlassian.jira:jira-bundled-plugins
            include-artifact,com.atlassian.jira.toolkit:jira-toolkit:${toolkit.version}
            include-artifact,com.atlassian.jira.plugins:jira-calendar-plugin:${calendar.version}
        </od.testing.configuration>

    </properties>
</project>
