<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>
    
    <groupId>com.atlassian.pom</groupId>
    <artifactId>atlassian-base-pom</artifactId>
    <packaging>pom</packaging>
    <name>Atlassian Base POM</name>
    <version>6</version>
    
    <description>Base POM for Atlassian projects</description>
    <url>http://www.atlassian.com</url>
    
    <organization>
        <name>Atlassian Software Systems Pty Ltd</name>
        <url>http://www.atlassian.com</url>
    </organization>
    
    <scm>
        <connection>scm:svn:https://svn.atlassian.com/svn/public/atlassian/pom/base/tags/atlassian-base-pom-6</connection>
        <developerConnection>scm:svn:https://svn.atlassian.com/svn/public/atlassian/pom/base/tags/atlassian-base-pom-6</developerConnection>
        <url>scm:svn:https://svn.atlassian.com/svn/public/atlassian/pom/base/tags/atlassian-base-pom-6</url>
    </scm>
    <properties>
      <jdkLevel>1.4</jdkLevel>
    </properties>
    
    <build>
	<plugins>
                <plugin>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>2.3</version>
                    <inherited>false</inherited>
                    <configuration>
                        <altDeploymentRepository>atlassian-m2-repository::default::scp://repository.atlassian.com/opt/mvn/public</altDeploymentRepository>
                        <!-- altSnapshotDeploymnetRepository should be used also - need to implement this in the deploy plugin -->
                    </configuration>
                </plugin>
	</plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.0.1</version>
                    <configuration>
                        <source>${jdkLevel}</source>
                        <target>${jdkLevel}</target>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.3</version>
                    <configuration>
                        <forkMode>once</forkMode>
                        <excludes>
                            <exclude>**/*$*</exclude>
                        </excludes>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>cobertura-maven-plugin</artifactId>
                    <version>2.1</version>
                    <executions>
                        <!-- to work around a bug in the plugin whereby it doesn't clean it metadata -->
                        <execution>
                            <goals>
                                <goal>clean</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <artifactId>maven-idea-plugin</artifactId>
                    <configuration>
                        <jdkName>${jdkLevel}</jdkName>
                        <jdkLevel>${jdkLevel}</jdkLevel>
                        <dependenciesAsLibraries>true</dependenciesAsLibraries>
                        <wildcardResourcePatterns>?*.properties;?*.xml;?*.xsl;?*.html;?*.dtd;?*.xsd;?*.tld;?*.gif;?*.png;?*.jpeg;?*.jpg;?*.vm;?*.css;?*.js;?*.zip;?*.ttf</wildcardResourcePatterns>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.2</version>
            </plugin>
            <plugin>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>2.0</version>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.0</version>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.1</version>
            </plugin>
            <plugin>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>2.1</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>cpd</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>1.0.0</version>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>javancss-maven-plugin</artifactId>
                <version>2.0-beta-2</version>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jdepend-maven-plugin</artifactId>
                <version>2.0-beta-1</version>
            </plugin>
	    <plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-clover-plugin</artifactId>
		<version>2.4</version>
	        <configuration>
		    <generateXml>true</generateXml>
		</configuration>
	     </plugin>
        </plugins>
    </reporting>
    <distributionManagement>
        <repository>
            <id>atlassian-private</id>
            <name>Atlassian Private Repository</name>
            <url>scp://repository.atlassian.com/opt/mvn/private</url>
        </repository>
        <snapshotRepository>
            <id>atlassian-private-snapshot</id>
            <name>Atlassian Private Snapshot Repository</name>
            <url>scp://repository.atlassian.com/opt/mvn/private-snapshot</url>
        </snapshotRepository>
    </distributionManagement>
</project>
