<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.gadgets</groupId>
        <artifactId>atlassian-gadgets</artifactId>
        <version>3.0-m13</version>
    </parent>
    <artifactId>atlassian-gadgets-tests</artifactId>
    <name>Gadget Integration Tests</name>
    <description>Plugin used for integration tests.  Also the module to run to debug gadgets on the refapp</description>
    <packaging>atlassian-plugin</packaging>
    <properties>
        <webdriver.browser>firefox-3.5</webdriver.browser>
        <xvfb.enable>true</xvfb.enable>
        <server>localhost</server>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-refapp-plugin</artifactId>
                <configuration>
                    <server>${server}</server>
                    <productVersion>${platform.version}</productVersion>
                    <systemPropertyVariables>
                        <xvfb.enable>${xvfb.enable}</xvfb.enable>
                        <webdriver.browser>${webdriver.browser}</webdriver.browser>
                        <plugin.resource.directories>
                            ${basedir}/src/main/resources,
                            ${basedir}/../dashboard-plugin/src/main/resources,
                            ${basedir}/../directory-plugin/src/main/resources,
                            ${basedir}/../embedded-plugin/src/main/resources,
                            ${basedir}/../publisher-plugin/src/main/resources,
                            ${basedir}/../opensocial-plugin/src/main/resources,
                            ${basedir}/../refimpl-dashboard-ui-plugin/src/main/resources
                        </plugin.resource.directories>
                    </systemPropertyVariables>
                    <pluginArtifacts>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-api</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-spi</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-opensocial-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-dashboard-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-embedded-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-refimpl-dashboard-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-refimpl-dashboard-ui-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-directory-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-publisher-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-sample-gadgets-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>atlassian-gadgets-oauth-service-provider-plugin</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.bundles</groupId>
                            <artifactId>json</artifactId>
                            <version>20070829-1</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.bundles</groupId>
                            <artifactId>nekohtml</artifactId>
                            <version>1.9.12-1</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.bundles</groupId>
                            <artifactId>icu4j</artifactId>
                            <version>3.8-1</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                    <libArtifacts>
                        <libArtifact>
                            <groupId>joda-time</groupId>
                            <artifactId>joda-time</artifactId>
                            <version>1.6</version>
                        </libArtifact>
                    </libArtifacts>
                </configuration>
            </plugin>            
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>ie</id>
            <properties>
                <webdriver.browser>ie</webdriver.browser>
                <xvfb.enable>false</xvfb.enable>
            </properties>
        </profile>

        <profile>
            <id>win7-firefox</id>
            <properties>
                <webdriver.browser>firefox-3.5</webdriver.browser>
                <xvfb.enable>false</xvfb.enable>
            </properties>
        </profile>
    </profiles>
    
    <dependencies>
        <dependency>
            <groupId>com.atlassian.selenium</groupId>
            <artifactId>atlassian-webdriver-refapp</artifactId>
            <version>2.0.0-m13</version>
            <scope>test</scope>
        </dependency>
         <dependency>
            <groupId>com.atlassian.selenium</groupId>
            <artifactId>atlassian-webdriver-browsers-auto</artifactId>
            <version>2.0.0-m13</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webresource</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>
</project>
