<?xml version="1.0" encoding="UTF-8"?>
<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">
    <parent>
        <groupId>com.atlassian.confluence.plugin.base</groupId>
        <artifactId>confluence-plugin-base</artifactId>
        <version>19</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.atlassian.navigator</groupId>
    <artifactId>atlassian-context-navigation</artifactId>
    <version>1.0</version>
    <name>Atlassian Context Navigation Plugin</name>
    <properties>
        <atlassian.plugin.key>com.atlassian.navigator</atlassian.plugin.key>
        <atlassian.product.version>3.0-m8</atlassian.product.version>
        <jdkLevel>1.5</jdkLevel>
    </properties>

    <description>The goal of the Atlassian Context Navigation Plugin is to provide user interface to Atlassian products that makes navigating within the application easier if you know where you want to go. Primary targets for now are Confluence and then JIRA.</description>
	<url>http://labs.atlassian.com/wiki/display/ACN/Home</url>

    <licenses>
        <license>
            <name>Apache 2</name>
            <distribution>repo</distribution>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>
 
    <developers>
        <developer>
            <name>Chris Kiehl</name>
            <email>ckiehl@atlassian.com</email>
            <organization>Atlassian</organization>
        </developer>
    </developers>
 
    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.3</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.5</version>
            <scope>test</scope>
        </dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.13</version>
		</dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-acceptance-test</artifactId>
            <version>3.0-m8</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-selenium-test</artifactId>
            <version>3.0-m8</version>
            <scope>test</scope>
        </dependency>
		<dependency>
			<groupId>org.seleniumhq.selenium.client-drivers</groupId>
			<artifactId>selenium-java-client-driver</artifactId>
			<version>1.0-beta-2</version>
			<scope>test</scope>
		</dependency>
        
    </dependencies>

    <scm>
        <connection>scm:svn:https://labs.atlassian.com/svn/ACN/tags/atlassian-context-navigation-1.0</connection>
        <developerConnection>scm:svn:https://labs.atlassian.com/svn/ACN/tags/atlassian-context-navigation-1.0</developerConnection>
        <url>https://labs.atlassian.com/svn/ACN/tags/atlassian-context-navigation-1.0</url>
    </scm>

    <repositories>
        <repository>
            <id>openqa-releases</id>
            <name>Openqa Release Repository</name>
            <url>http://nexus.openqa.org/content/repositories/releases</url>
            <layout>default</layout>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>twdata</id>
            <url>http://twdata-m2-repository.googlecode.com/svn/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </pluginRepository>    
    </pluginRepositories>
    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>selenium-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>start-server</goal>
                        </goals>
                        <configuration>
                            <background>true</background>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
			        <dependency>
						<groupId>org.seleniumhq.selenium.server</groupId>
						<artifactId>selenium-server</artifactId>
						<version>1.0-beta-2</version>
			        </dependency>
                </dependencies>
            </plugin>
        
            <plugin>
                <groupId>org.twdata.maven</groupId>
                <artifactId>maven-cli-plugin</artifactId>
                <version>0.6.1</version>
                <configuration>
                    <commands>
                        <pi>clean resources compile jar com.atlassian.maven.plugins:atlassian-pdk:install</pi>
                        <pu>com.atlassian.maven.plugins:atlassian-pdk:uninstall</pu>
                    </commands>
                    <properties>
                        <cli.port>42837</cli.port>
                    </properties>
                </configuration>
            </plugin>
        </plugins>
    </build>
    
    <profiles>
    	<profile>
    		<id>selenium</id>
		    <build>
		        <plugins>
		            <plugin>
		                <groupId>org.codehaus.mojo</groupId>
		                <artifactId>selenium-maven-plugin</artifactId>
		                <executions>
		                    <execution>
		                        <phase>pre-integration-test</phase>
		                        <goals>
		                            <goal>start-server</goal>
		                        </goals>
		                        <configuration>
		                            <background>true</background>
		                        </configuration>
		                    </execution>
		                </executions>
		            </plugin>

                    <plugin>
		                <artifactId>maven-surefire-plugin</artifactId>
		                <configuration>
		                    <!-- Skip the normal tests, we'll run them in the integration-test phase -->
		                    <skip>true</skip>
		                </configuration>
		                
		                <executions>
		                    <execution>
		                        <phase>integration-test</phase>
		                        <goals>
		                            <goal>test</goal>
		                        </goals>
		                        <configuration>
		                            <skip>false</skip>
									<includes>
					                  <include>selenium/**/*java</include>
					                </includes>
		                        </configuration>
		                    </execution>
		                </executions>
		            </plugin>
		            
		        </plugins>
			</build>    		
    	</profile>
    </profiles>
</project>
