<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.pom</groupId>
        <artifactId>atlassian-closedsource-pom</artifactId>
        <version>22</version>
    </parent>
    <groupId>com.atlassian.upm</groupId>
    <artifactId>atlassian-universal-plugin-manager</artifactId>
    <version>2.7.10</version>
    <packaging>pom</packaging>
    <name>Universal Plugin Manager - Parent POM</name>
    <scm>
        <connection>scm:git:git@bitbucket.org:atlassian/atlassian-upm.git</connection>
        <developerConnection>scm:git:git@bitbucket.org:atlassian/atlassian-upm.git</developerConnection>
        <url>https://bitbucket.org/atlassian/atlassian-upm</url>
    </scm>
    <modules>
        <module>atlassian-universal-plugin-manager-test-resources</module>
        <module>upm-api</module>
        <module>spi</module>
        <module>upm-common</module>
        <module>testing</module>
        <module>licensing-parent</module>
        <module>mpac-client</module>
        <module>atlassian-universal-plugin-manager-selfupdate-plugin</module>
        <module>atlassian-universal-plugin-manager-plugin</module>
        <module>fake-mac-plugin</module>
        <module>fake-pac-plugin</module>
        <module>atlassian-universal-plugin-manager-integration-tests</module>
        <module>atlassian-universal-plugin-manager-pageobjects</module>
    </modules>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>2.4</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>1.4</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>commons-httpclient</groupId>
                <artifactId>commons-httpclient</artifactId>
                <version>3.0.1</version>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient</artifactId>
                <version>4.2.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient-cache</artifactId>
                <version>4.2.1</version>
            </dependency>
            <dependency>
                <groupId>javax.ws.rs</groupId>
                <artifactId>jsr311-api</artifactId>
                <version>1.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.codehaus.jackson</groupId>
                <artifactId>jackson-core-asl</artifactId>
                <version>1.4.4</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.jackson</groupId>
                <artifactId>jackson-mapper-asl</artifactId>
                <version>1.4.4</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.jackson</groupId>
                <artifactId>jackson-jaxrs</artifactId>
                <version>1.4.4</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.jackson</groupId>
                <artifactId>jackson-xc</artifactId>
                <version>1.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.templaterenderer</groupId>
                <artifactId>atlassian-template-renderer-api</artifactId>
                <version>1.0.5</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bundles</groupId>
                <artifactId>google-collections</artifactId>
                <version>1.0-rc2</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugins.rest</groupId>
                <artifactId>atlassian-rest-common</artifactId>
                <version>2.2.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.sun.jersey</groupId>
                <artifactId>jersey-core</artifactId>
                <version>1.0.3-atlassian-1</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>2.4</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.sling</groupId>
                <artifactId>org.apache.sling.commons.osgi</artifactId>
                <version>2.0.4-incubator</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.integrationtesting</groupId>
                <artifactId>atlassian-integrationtesting-lib</artifactId>
                <version>1.0.beta14</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit-dep</artifactId>
                <version>4.10</version>
                <scope>test</scope>
                <exclusions>
                    <exclusion>
                        <groupId>org.hamcrest</groupId>
                        <artifactId>hamcrest-core</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>1.8.1</version>
                <scope>test</scope>
                <exclusions>
                    <exclusion>
                        <groupId>org.hamcrest</groupId>
                        <artifactId>hamcrest-core</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>rhino</groupId>
                <artifactId>js</artifactId>
                <version>1.7R1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.sun.jersey.contribs</groupId>
                <artifactId>jersey-apache-client</artifactId>
                <version>1.0.2</version>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-all</artifactId>
                <version>1.2</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.sun.jersey.contribs</groupId>
                <artifactId>jersey-multipart</artifactId>
                <version>1.0.2</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.event</groupId>
                <artifactId>atlassian-event</artifactId>
                <version>2.0.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugins</groupId>
                <artifactId>atlassian-plugins-core</artifactId>
                <version>2.6.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugins</groupId>
                <artifactId>atlassian-plugins-osgi</artifactId>
                <version>2.6.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugins</groupId>
                <artifactId>atlassian-plugins-webfragment</artifactId>
                <version>2.6.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugins</groupId>
                <artifactId>atlassian-plugins-webresource</artifactId>
                <version>2.6.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>1.5.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
                <version>1.5.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bundles</groupId>
                <artifactId>jsr305</artifactId>
                <version>1.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.sal</groupId>
                <artifactId>sal-api</artifactId>
                <version>2.2.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>1.6</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>rome</groupId>
                <artifactId>rome</artifactId>
                <version>1.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.jdom</groupId>
                <artifactId>com.springsource.org.jdom</artifactId>
                <version>1.0.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.springframework.osgi</groupId>
                <artifactId>spring-osgi-core</artifactId>
                <version>1.1.3</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.osgi.compendium</artifactId>
                <version>1.4.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.bundlerepository</artifactId>
                <version>1.4.0</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.apache.felix</groupId>
                        <artifactId>org.osgi.core</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.apache.felix</groupId>
                        <artifactId>org.osgi.service.obr</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>net.sf.kxml</groupId>
                        <artifactId>kxml2</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.atlassian.util.concurrent</groupId>
                <artifactId>atlassian-util-concurrent</artifactId>
                <version>2.3.0</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.security</groupId>
                <artifactId>atlassian-secure-random</artifactId>
                <version>1.0</version>
            </dependency>
            <!-- test plugins -->
            <dependency>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>atlassian-universal-plugin-manager-test-plugin-v2-installable</artifactId>
                <version>2.7.10</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>atlassian-universal-plugin-manager-test-plugin-v2-bundled-has-no-update</artifactId>
                <version>2.7.10</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>atlassian-universal-plugin-manager-test-plugin-v2-installable-has-no-update</artifactId>
                <version>2.7.10</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>atlassian-universal-plugin-manager-test-plugin-v1-installable</artifactId>
                <version>2.7.10</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.selenium</groupId>
                <artifactId>atlassian-webdriver-core</artifactId>
                <version>2.1.0-m7</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.refapp</groupId>
                <artifactId>atlassian-refapp-pageobjects</artifactId>
                <version>2.13.0-beta1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>atlassian-jira-pageobjects</artifactId>
                <version>5.2-upm-2</version>
                <scope>test</scope>
                <exclusions>
                    <exclusion>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.atlassian.selenium</groupId>
                        <artifactId>atlassian-pageobjects-elements</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.atlassian.selenium</groupId>
                        <artifactId>atlassian-pageobjects-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash</groupId>
                <artifactId>stash-page-objects</artifactId>
                <version>1.3.0-M6</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.selenium</groupId>
                <artifactId>atlassian-webdriver-confluence</artifactId>
                <version>2.1.0-m7</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>2.4</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>1.6</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-plugin</artifactId>
                    <version>3.11</version>
                    <extensions>true</extensions>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <skip>${maven.test.unit.skip}</skip>
                        <excludes>
                            <exclude>it/**/*</exclude>
                            <exclude>com/atlassian/upm/test/*</exclude>
                        </excludes>
                        <systemProperties>
                            <property>
                                <name>jsunit.entrypoint</name>
                                <value>${basedir}/src/test/javascript/test.js</value>
                            </property>
                        </systemProperties>
                        <junitArtifactName>junit:junit-dep</junitArtifactName>
                        <argLine>-Xmx768m</argLine>
                    </configuration>
                    <executions>
                        <execution>
                            <id>integration-test</id>
                            <phase>integration-test</phase>
                            <goals>
                                <goal>test</goal>
                            </goals>
                            <configuration>
                                <skip>${maven.test.it.skip}</skip>
                                <includes>
                                    <include>it/**/*java</include>
                                </includes>
                                <systemProperties>
                                    <property>
                                        <name>baseurl</name>
                                        <value>http://localhost:${httpPort}${contextPath}</value>
                                    </property>
                                </systemProperties>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.2.2</version>
                    <configuration>
                        <arguments>-Prelease -DtestGroups=refapp</arguments>
                    </configuration>
                </plugin>
                <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>com.atlassian.maven.plugins</groupId>
                                        <artifactId>maven-amps-plugin</artifactId>
                                        <versionRange>[${amps.version},)</versionRange>
                                        <goals>
                                            <goal>compress-resources</goal>
                                            <goal>copy-bundled-dependencies</goal>
                                            <goal>filter-plugin-descriptor</goal>
                                            <goal>generate-manifest</goal>
                                            <goal>generate-rest-docs</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>com.atlassian.maven.plugins</groupId>
                                        <artifactId>maven-refapp-plugin</artifactId>
                                        <versionRange>[${amps.version},)</versionRange>
                                        <goals>
                                            <goal>compress-resources</goal>
                                            <goal>copy-bundled-dependencies</goal>
                                            <goal>filter-plugin-descriptor</goal>
                                            <goal>generate-manifest</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-dependency-plugin</artifactId>
                                        <versionRange>[2.0,)</versionRange>
                                        <goals>
                                            <goal>copy-dependencies</goal>
                                            <goal>unpack</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-antrun-plugin</artifactId>
                                        <versionRange>[1.6,)</versionRange>
                                        <goals>
                                            <goal>run</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <properties>
        <jdkLevel>1.6</jdkLevel>
        <atlassian.plugins.version>2.6.0</atlassian.plugins.version>
        <atlassian.extras.version>3.1.0</atlassian.extras.version>
        <amps.version>3.11</amps.version>
        <refapp.version>2.12.1</refapp.version>
        <refapp.pageobjects.version>2.13.0-beta1</refapp.pageobjects.version>

        <!-- all supported product versions to test against -->
        <bamboo26.version>2.6</bamboo26.version>
        <bamboo33.version>3.3</bamboo33.version>
        <bamboo34.version>3.4</bamboo34.version>
        <bamboo40.version>4.0</bamboo40.version>
        <bamboo41.version>4.1</bamboo41.version>
        <bamboo42.version>4.2</bamboo42.version>
        <confluence31.version>3.1</confluence31.version>
        <confluence34.version>3.4</confluence34.version>
        <confluence35.version>3.5</confluence35.version>
        <confluence40.version>4.0</confluence40.version>
        <confluence41.version>4.1</confluence41.version>
        <confluence42.version>4.2.6</confluence42.version> <!-- 4.2.0 mistakenly exports a snapshot version of all confluence packages, causing a test failure -->
        <confluence43.version>4.3</confluence43.version>
        <fecru24.version>2.4.0-20101020013901</fecru24.version>
        <fecru25.version>2.5.4-20110408064401</fecru25.version>
        <fecru26.version>2.6.0-20110606054705</fecru26.version>
        <fecru27.version>2.7.0-20110906065646</fecru27.version>
        <fecru28.version>2.8.0-20120814071112</fecru28.version>
        <jira41.version>4.1</jira41.version>
        <jira43.version>4.3</jira43.version>
        <jira44.version>4.4</jira44.version>
        <jira50.version>5.0</jira50.version>
        <jira51.version>5.1</jira51.version>
        <jira52.version>5.2-upm-2</jira52.version>
        <stash12.version>1.2.0</stash12.version>
        <stash13.version>1.3.0-M6</stash13.version>

        <!-- the default product versions to test against. preferably the latest final release of each product -->
        <jira.version>${jira52.version}</jira.version>
        <confluence.version>${confluence43.version}</confluence.version>
        <stash.version>${stash13.version}</stash.version>
        <bamboo.version>${bamboo42.version}</bamboo.version>
        <fecru.version>${fecru28.version}</fecru.version>

        <!-- the oldest compatible version of each product -->
        <jira.target.version>${jira43.version}</jira.target.version>
        <confluence.target.version>${confluence34.version}</confluence.target.version>
        <stash.target.version>${stash12.version}</stash.target.version>
        <bamboo.target.version>${bamboo33.version}</bamboo.target.version>
        <fecru.target.version>2.5.4</fecru.target.version>

        <jira.pageobjects.version>${jira.version}</jira.pageobjects.version>
        <ait.version>1.0.beta14</ait.version>
        <joda.time.version>1.6</joda.time.version>
        <sal.api.version>2.2.0</sal.api.version>
        <atlassian.concurrent.version>2.3.0</atlassian.concurrent.version>
        <atlassian.dev.mode>false</atlassian.dev.mode>
        <upm.test.update.version>99</upm.test.update.version>
        <contextPath>/upm</contextPath>
        <httpPort>3990</httpPort>
        <mac.baseurl>http://localhost:${httpPort}${contextPath}/rest/fakemac/1.0</mac.baseurl>
        <mpac.baseurl>http://localhost:${httpPort}${contextPath}/rest/fakempac/1.0</mpac.baseurl>
        <mpac.website>${mpac.baseurl}</mpac.website>
        <atlassian.upm.server.data.disable>false</atlassian.upm.server.data.disable>
        <utac.server>dashboard-test.atlassian.com</utac.server>
        <utac.httpPort>80</utac.httpPort>
        <utac.jira.contextPath>/jira</utac.jira.contextPath>
        <utac.confluence.contextPath>/confluence</utac.confluence.contextPath>
        <atlassian.webresource.disable.minification>true</atlassian.webresource.disable.minification>
        <atlassian.upm.debug>true</atlassian.upm.debug>
        <atlassian.upm.on.demand>false</atlassian.upm.on.demand>
        <upm.pac.disable>false</upm.pac.disable>
        <!-- UPM-1782 AMPS won't allow me to leave this blank, but I don't want it to have any recognized plugin keys by default -->
        <atlassian.upm.user.installed.override>This will not resolve to any plugin unless overridden</atlassian.upm.user.installed.override>
        <atlassian.selenium.version>2.1.0-m7</atlassian.selenium.version>
        <xvfb.enable>true</xvfb.enable>
        <webdriver.browser>firefox-3.5</webdriver.browser>
        <doclava.theme.dir>${basedir}/target/doclava</doclava.theme.dir>
        <doclava.theme.version>0.12</doclava.theme.version>
        <license.storage.plugin.oldest.bamboo.target.version>2.6</license.storage.plugin.oldest.bamboo.target.version>
        <license.storage.plugin.oldest.confluence.target.version>3.1</license.storage.plugin.oldest.confluence.target.version>
        <license.storage.plugin.oldest.fecru.target.version>2.4</license.storage.plugin.oldest.fecru.target.version>
        <license.storage.plugin.oldest.jira.target.version>4.1</license.storage.plugin.oldest.jira.target.version>
        <license.storage.plugin.oldest.stash.target.version>1.1</license.storage.plugin.oldest.stash.target.version>
    </properties>
    <profiles>
        <profile>
            <id>ie</id>
            <properties>
                <webdriver.browser>ie</webdriver.browser>
                <xvfb.enable>false</xvfb.enable>
            </properties>
            <modules>
                <module>ui-tests</module>
            </modules>
        </profile>

        <profile>
            <id>win7-firefox</id>
            <properties>
                <webdriver.browser>firefox-3.5</webdriver.browser>
                <xvfb.enable>false</xvfb.enable>
            </properties>
            <modules>
                <module>ui-tests</module>
            </modules>
        </profile>

        <profile>
            <id>deploy</id>
            <build>
                <defaultGoal>deploy</defaultGoal>
            </build>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
        </profile>
    </profiles>
</project>
