<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>7</version>
  </parent>

  <groupId>com.atlassian.bamboo</groupId>
  <artifactId>atlassian-bamboo</artifactId>

  <packaging>pom</packaging>
  <version>2.0-DR4</version>

  <properties>
    <buildNumber>702</buildNumber>
    <install4JVersion>${project.version}</install4JVersion>
    <!-- Properties for Atlassian IDEA plugin -->
    <maven.war.src>bamboo-web-app/src/main/webapp</maven.war.src>
    <appserver.module.dependency>atlassian-bamboo-web-app</appserver.module.dependency>
    <sourceXML.location>sources.xml</sourceXML.location>
    <devMode>true</devMode>
    <jdkLevel>1.5</jdkLevel>
    <springVersion>2.0.7</springVersion>
  </properties>

  <name>Atlassian Bamboo</name>
  <url>http://www.atlassian.com/bamboo</url>

  <scm>
    <connection>scm:svn:https://svn.atlassian.com/svn/private/atlassian/bamboo/tags/atlassian-bamboo-2.0-DR4</connection>
    <developerConnection>scm:svn:https://svn.atlassian.com/svn/private/atlassian/bamboo/tags/atlassian-bamboo-2.0-DR4</developerConnection>
    <url>https://svn.atlassian.com/svn/private/atlassian/bamboo/tags/atlassian-bamboo-2.0-DR4</url>
  </scm>

  <modules>
    <module>bamboo-api</module>
    <module>bamboo-core</module>
    <module>bamboo-language</module>
    <module>bamboo-license</module>
    <module>bamboo-remoteapi</module>
    <module>bamboo-persistence</module>
    <module>bamboo-migration</module>
    <module>bamboo-charts</module>
    <module>bamboo-upgrader</module>
    <module>bamboo-web</module>
    <module>bamboo-test-utils</module>

    <!-- Agent Bamboo -->
    <module>bamboo-agent</module>
    <module>bamboo-agent-core</module>
    <module>bamboo-agent-local</module>
    <module>bamboo-agent-remote</module>
    <module>bamboo-agent-remote-uber-jar</module>
    <!-- <module>bamboo-agent-installer</module> - Breaks maven clover plugin -->
    <module>bamboo-agent-bootstrap</module>
    <module>bamboo-agent-classpath</module>
    <module>bamboo-agent-classserver</module>

    <!-- Need to add in-house plugins here -->
    <module>bamboo-plugins/bamboo-plugin-autofavourite</module>
    <module>bamboo-plugins/bamboo-vcsversion-plugin</module>
    <module>bamboo-plugins/bamboo-labeller-plugin-2</module>

    <!--<module>../atlassian-base</module>-->
    <!--<module>../atlassian-config</module>-->
    <!--<module>../atlassian-spring</module>-->
    <!--<module>../atlassian-event</module>-->
  </modules>

  <profiles>
    <profile>
      <id>all</id>
      <modules>
        <module>bamboo-web-app</module>
        <module>bamboo-web-server</module>
        <module>bamboo-installer</module>
        <module>bamboo-acceptance-test</module>
        <module>bamboo-ldap-web-app</module>
        <module>bamboo-crowd-web-app</module>
      </modules>
    </profile>

    <profile>
      <id>functest</id>
      <modules>
        <module>bamboo-web-app</module>
        <module>bamboo-acceptance-test</module>
      </modules>
      <build>
        <!-- Get the normal unit tests to be skipped -->
        <pluginManagement>
          <plugins>
            <plugin>
              <artifactId>maven-surefire-plugin</artifactId>
              <configuration>
                <skip>true</skip>
              </configuration>
            </plugin>
          </plugins>
        </pluginManagement>
      </build>
    </profile>

    <profile>
      <id>remoteAgentFuncTest</id>
      <modules>
        <module>bamboo-web-app</module>
        <module>bamboo-acceptance-test</module>
      </modules>
      <build>
        <!-- Get the normal unit tests to be skipped -->
        <pluginManagement>
          <plugins>
            <plugin>
              <artifactId>maven-surefire-plugin</artifactId>
              <configuration>
                <skip>true</skip>
              </configuration>
            </plugin>
          </plugins>
        </pluginManagement>
      </build>
    </profile>

    <profile>
      <id>ldap</id>
      <modules>
        <module>bamboo-ldap-web-app</module>
      </modules>
    </profile>

    <profile>
      <id>crowd</id>
      <modules>
        <module>bamboo-crowd-web-app</module>
      </modules>
    </profile>

    <profile>
      <id>ignoreFail</id>
      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <artifactId>maven-surefire-plugin</artifactId>
              <configuration>
                <testFailureIgnore>true</testFailureIgnore>
              </configuration>
            </plugin>
          </plugins>
        </pluginManagement>
      </build>
    </profile>

    <profile>
      <id>noTests</id>
      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <artifactId>maven-surefire-plugin</artifactId>
              <configuration>
                <skip>true</skip>
              </configuration>
            </plugin>
          </plugins>
        </pluginManagement>
      </build>
    </profile>

    <profile>
      <id>release-profile</id>
      <properties>
        <devMode>false</devMode>
      </properties>
      <modules>
        <module>bamboo-web-app</module>
        <module>bamboo-web-server</module>
      </modules>
    </profile>
  </profiles>

  <dependencyManagement>
    <dependencies>
      <!-- Module dependencies -->
      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-api</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-core</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>bamboo-agent</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-agent-core</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-test-utils</artifactId>
        <version>${project.version}</version>
        <scope>test</scope>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-agent-local</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-agent-remote</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-agent-bootstrap</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-agent-classpath</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-agent-classserver</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-agent-installer</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-charts</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-license</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-language</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-persistence</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-migration</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-upgrader</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-web</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-web-app</artifactId>
        <version>${project.version}</version>
        <type>war</type>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-web-server</artifactId>
        <version>${project.version}</version>
        <type>war</type>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-ldap-web-app</artifactId>
        <version>${project.version}</version>
        <type>war</type>
      </dependency>

      <!-- Bamboo SHIPPED PLUGINS - ensure atlassian-bamboo-web-app/pom.xml is also updated. -->
      <dependency>
        <groupId>com.atlassian.bamboo.plugins</groupId>
        <artifactId>atlassian-bamboo-plugin-autofavourite</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo.plugins.repository</groupId>
        <artifactId>atlassian-bamboo-plugin-vcsversion</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bamboo.plugins.labeller</groupId>
        <artifactId>atlassian-bamboo-plugin-labeller</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!-- Fully Maven 2 Atlassian dependencies -->
      <dependency>
        <groupId>com.atlassian.config</groupId>
        <artifactId>atlassian-config</artifactId>
        <version>0.9</version>
        <exclusions>
          <exclusion>
            <!-- groupId of freemarker is now org.freemarker -->
            <groupId>freemarker</groupId>
            <artifactId>freemarker</artifactId>
          </exclusion>
          <exclusion>
            <!-- groupId of oscore is now opensymphony -->
            <groupId>oscore</groupId>
            <artifactId>oscore</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>com.atlassian.spring</groupId>
        <artifactId>atlassian-spring</artifactId>
        <version>0.7</version>
      </dependency>

      <!-- Atlassian dependencies -->
      <dependency>
        <groupId>com.atlassian.core</groupId>
        <artifactId>atlassian-core</artifactId>
        <version>3.6</version>
        <exclusions>
          <exclusion>
            <!-- groupId of freemarker is now org.freemarker -->
            <groupId>freemarker</groupId>
            <artifactId>freemarker</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>com.atlassian.johnson</groupId>
        <artifactId>atlassian-johnson</artifactId>
        <version>0.9</version>
        <exclusions>
          <exclusion>
            <!-- groupId of freemarker is now org.freemarker -->
            <groupId>freemarker</groupId>
            <artifactId>freemarker</artifactId>
          </exclusion>
          <exclusion>
            <!-- groupId of oscore is now opensymphony -->
            <artifactId>oscore</artifactId>
            <groupId>oscore</groupId>
          </exclusion>
          <exclusion>
            <artifactId>osuser</artifactId>
            <groupId>osuser</groupId>
          </exclusion>
          <exclusion>
            <artifactId>easymock</artifactId>
            <groupId>easymock</groupId>
          </exclusion>
          <exclusion>
            <artifactId>log4j</artifactId>
            <groupId>log4j</groupId>
          </exclusion>
          <exclusion>
            <artifactId>easymockclassextension</artifactId>
            <groupId>easymock</groupId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>com.atlassian.event</groupId>
        <artifactId>atlassian-event</artifactId>
        <version>0.5</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.extras</groupId>
        <artifactId>atlassian-extras</artifactId>
        <version>1.15</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.plugins</groupId>
        <artifactId>atlassian-plugins</artifactId>
        <version>0.13</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.velocity</groupId>
        <artifactId>atlassian-velocity</artifactId>
        <version>0.5</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bucket</groupId>
        <artifactId>atlassian-bucket</artifactId>
        <version>0.17</version>
        <exclusions>
          <exclusion>
            <groupId>opensymphony</groupId>
            <artifactId>webwork</artifactId>
          </exclusion>
          <exclusion>
            <!-- groupId of sitemesh is now opensymphony -->
            <groupId>sitemesh</groupId>
            <artifactId>sitemesh</artifactId>
          </exclusion>
          <exclusion>
            <!-- Using artifactId cglib-nodep instead -->
            <groupId>cglib</groupId>
            <artifactId>cglib-full</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
          </exclusion>
          <exclusion>
            <groupId>hibernate</groupId>
            <artifactId>hibernate</artifactId>
          </exclusion>
          <exclusion>
            <groupId>ognl</groupId>
            <artifactId>ognl</artifactId>
          </exclusion>
          <exclusion>
            <groupId>atlassian-confluence-extras</groupId>
            <artifactId>atlassian-confluence-extras</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>com.atlassian.profiling</groupId>
        <artifactId>atlassian-profiling</artifactId>
        <version>1.4</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.user</groupId>
        <artifactId>atlassian-user</artifactId>
        <version>1.9</version>
        <exclusions>
          <exclusion>
            <!-- Using artifactId cglib-nodep instead -->
            <groupId>cglib</groupId>
            <artifactId>cglib-full</artifactId>
          </exclusion>
          <exclusion>
            <groupId>hibernate</groupId>
            <artifactId>hibernate</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>com.atlassian.bonnie</groupId>
        <artifactId>atlassian-bonnie</artifactId>
        <version>2.7</version>
        <exclusions>
          <exclusion>
            <!-- groupId of freemarker is now org.freemarker -->
            <groupId>freemarker</groupId>
            <artifactId>freemarker</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <!-- DON"T UPGRADE TO M2 MAIL. It has many irrelevent deps from OfBiz... Should look to not use.-->
      <dependency>
        <groupId>com.atlassian.mail</groupId>
        <artifactId>atlassian-mail</artifactId>
        <version>1.6</version>
        <exclusions>
          <exclusion>
            <groupId>com.atlassian.ofbiz</groupId>
            <artifactId>atlassian-ofbiz</artifactId>
          </exclusion>
          <exclusion>
            <!-- groupId of oscore is now opensymphony -->
            <groupId>oscore</groupId>
            <artifactId>oscore</artifactId>
          </exclusion>
          <exclusion>
            <groupId>mockobjects</groupId>
            <artifactId>mockobjects</artifactId>
          </exclusion>
          <exclusion>
            <groupId>ofbcore</groupId>
            <artifactId>ofbcore-share</artifactId>
          </exclusion>
          <exclusion>
            <groupId>ofbcore</groupId>
            <artifactId>ofbcore-entity</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <!-- Other dependencies -->
      <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.4</version>
        <scope>provided</scope>
      </dependency>

      <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jsp-api</artifactId>
        <version>2.0</version>
        <scope>provided</scope>
      </dependency>


      <dependency>
        <groupId>net.sourceforge.jwebunit</groupId>
        <artifactId>jwebunit-htmlunit-plugin</artifactId>
        <version>1.4.1</version>
      </dependency>

      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.1</version>
      </dependency>

      <dependency>
        <groupId>javax.activation</groupId>
        <artifactId>activation</artifactId>
        <version>1.0.2</version>
      </dependency>

      <dependency>
        <groupId>ant</groupId>
        <artifactId>ant</artifactId>
        <version>1.6.5</version>
      </dependency>

      <dependency>
        <groupId>ant</groupId>
        <artifactId>optional</artifactId>
        <version>1.5.4</version>
      </dependency>

      <dependency>
        <groupId>backport-util-concurrent</groupId>
        <artifactId>backport-util-concurrent</artifactId>
        <version>2.1</version>
      </dependency>

      <dependency>
        <groupId>build-tools</groupId>
        <artifactId>build-tools</artifactId>
        <version>1.1</version>
      </dependency>

      <!-- Lucene -->
      <dependency>
        <groupId>org.apache.lucene</groupId>
        <artifactId>lucene-core</artifactId>
        <!-- <version>1.9.1</version> -->
        <version>2.2.0</version>
      </dependency>

      <!-- Some dB pooling stuff. http://sourceforge.net/projects/c3p0 -->
      <dependency>
        <groupId>c3p0</groupId>
        <artifactId>c3p0</artifactId>
        <version>0.9.1.1</version>
      </dependency>

      <!-- Seems to be needed for spring to run without -->
      <dependency>
        <groupId>cglib</groupId>
        <artifactId>cglib-nodep</artifactId>
        <version>2.1_3</version>
      </dependency>

      <dependency>
        <groupId>commons-beanutils</groupId>
        <artifactId>commons-beanutils</artifactId>
        <version>1.7.0</version>
      </dependency>

      <dependency>
        <groupId>commons-collections</groupId>
        <artifactId>commons-collections</artifactId>
        <version>3.1</version>
      </dependency>

      <dependency>
        <groupId>commons-configuration</groupId>
        <artifactId>commons-configuration</artifactId>
        <version>1.4</version>
        <exclusions>
          <exclusion>
            <groupId>xerces</groupId>
            <artifactId>xerces</artifactId>
          </exclusion>
          <exclusion>
            <groupId>servletapi</groupId>
            <artifactId>servletapi</artifactId>
          </exclusion>
          <exclusion>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils-core</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>commons-el</groupId>
        <artifactId>commons-el</artifactId>
        <version>1.0</version>
      </dependency>

      <dependency>
        <groupId>commons-httpclient</groupId>
        <artifactId>commons-httpclient</artifactId>
        <version>3.0.1</version>
      </dependency>

      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>1.3.1</version>
      </dependency>

      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.3</version>
      </dependency>

      <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.0.4</version>
      </dependency>

      <dependency>
        <groupId>dom4j</groupId>
        <artifactId>dom4j</artifactId>
        <version>1.4</version>
      </dependency>

      <dependency>
        <groupId>uk.ltd.getahead</groupId>
        <artifactId>dwr</artifactId>
        <version>1.1</version>
      </dependency>

      <dependency>
        <groupId>hsqldb</groupId>
        <artifactId>hsqldb</artifactId>
        <version>1.8.0.7</version>
      </dependency>

      <dependency>
        <groupId>javacvs</groupId>
        <artifactId>javacvs</artifactId>
        <version>atlassian-20070918</version>
      </dependency>

      <dependency>
        <groupId>emma</groupId>
        <artifactId>emma</artifactId>
        <version>2.0.5312</version>
      </dependency>

      <dependency>
        <groupId>emma_ant</groupId>
        <artifactId>emma_ant</artifactId>
        <version>2.0.5312</version>
      </dependency>

      <dependency>
        <groupId>exml</groupId>
        <artifactId>exml</artifactId>
        <version>7.0</version>
      </dependency>

      <dependency>
        <groupId>httpunit</groupId>
        <artifactId>httpunit</artifactId>
        <version>1.5.4</version>
      </dependency>

      <dependency>
        <groupId>tomcat</groupId>
        <artifactId>jasper-compiler</artifactId>
        <version>5.0.28</version>
      </dependency>

      <dependency>
        <groupId>tomcat</groupId>
        <artifactId>jasper-runtime</artifactId>
        <version>5.0.28</version>
      </dependency>

      <dependency>
        <groupId>org.tmatesoft</groupId>
        <artifactId>svnkit</artifactId>
        <version>1.1.4</version>
      </dependency>

      <dependency>
        <groupId>jdom</groupId>
        <artifactId>jdom</artifactId>
        <version>1.0</version>
      </dependency>

      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-plus</artifactId>
        <version>6.1.5</version>
      </dependency>

      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty</artifactId>
        <version>6.1.5</version>
      </dependency>

      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-management</artifactId>
        <version>6.1.5</version>
        <exclusions>
          <exclusion>
            <groupId>mx4j</groupId>
            <artifactId>mx4j</artifactId>
          </exclusion>
          <exclusion>
            <groupId>mx4j</groupId>
            <artifactId>mx4j-tools</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-naming</artifactId>
        <version>6.1.5</version>
      </dependency>

      <dependency>
        <groupId>jmock</groupId>
        <artifactId>jmock</artifactId>
        <version>1.0.1</version>
      </dependency>

      <dependency>
        <groupId>joda-time</groupId>
        <artifactId>joda-time</artifactId>
        <version>1.4</version>
      </dependency>

      <dependency>
        <groupId>js</groupId>
        <artifactId>js</artifactId>
        <version>1.5R4-RC3</version>
      </dependency>

      <dependency>
        <groupId>com.jcraft</groupId>
        <artifactId>jsch</artifactId>
        <version>0.1.31</version>
      </dependency>

      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.1</version>
      </dependency>

      <dependency>
        <groupId>jwebunit</groupId>
        <artifactId>jwebunit</artifactId>
        <version>1.4.1</version>
      </dependency>

      <dependency>
        <groupId>javax.transaction</groupId>
        <artifactId>jta</artifactId>
        <version>1.0.1B</version>
      </dependency>

      <dependency>
        <groupId>net.sf.ldaptemplate</groupId>
        <artifactId>ldaptemplate</artifactId>
        <version>1.0.1</version>
        <exclusions>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-dao</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.7</version>
      </dependency>


      <dependency>
        <groupId>org.logicblaze.lingo</groupId>
        <artifactId>lingo</artifactId>
        <version>1.3</version>
        <exclusions>
          <exclusion>
            <groupId>geronimo</groupId>
            <artifactId>geronimo-connector</artifactId>
          </exclusion>
          <exclusion>
            <groupId>geronimo</groupId>
            <artifactId>geronimo-transaction</artifactId>
          </exclusion>
          <exclusion>
            <groupId>incubator-activemq</groupId>
            <artifactId>activeio-core</artifactId>
          </exclusion>
          <exclusion>
            <groupId>incubator-activemq</groupId>
            <artifactId>activemq-core</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>mail</artifactId>
        <version>1.3.2</version>
      </dependency>

      <dependency>
        <groupId>nekohtml</groupId>
        <artifactId>nekohtml</artifactId>
        <version>0.7.7</version>
      </dependency>

      <!-- NFI what this is. Seems to be used for atlassian-user hibernate config-->
      <dependency>
        <groupId>odmg</groupId>
        <artifactId>odmg</artifactId>
        <version>3.0</version>
      </dependency>

      <dependency>
        <groupId>opensymphony</groupId>
        <artifactId>oscore</artifactId>
        <version>2.2.4</version>
      </dependency>

      <dependency>
        <groupId>osuser</groupId>
        <artifactId>osuser</artifactId>
        <version>atl.user</version>
      </dependency>

      <!--<dependency>-->
      <!--<groupId>net.sourceforge.pjl-comp-filter</groupId>-->
      <!--<artifactId>pjl-comp-filter</artifactId>-->
      <!--<version>1.6.4</version>-->
      <!--</dependency>-->

      <dependency>
        <groupId>pjl-comp-filter</groupId>
        <artifactId>pjl-comp-filter</artifactId>
        <version>1.4</version>
      </dependency>

      <dependency>
        <groupId>polsUtils</groupId>
        <artifactId>polsUtils</artifactId>
        <version>1.0.18</version>
      </dependency>

      <dependency>
        <groupId>opensymphony</groupId>
        <artifactId>propertyset</artifactId>
        <version>1.3-21Nov03</version>
      </dependency>

      <dependency>
        <groupId>qdox</groupId>
        <artifactId>qdox</artifactId>
        <version>1.2</version>
      </dependency>

      <dependency>
        <groupId>quartz</groupId>
        <artifactId>quartz</artifactId>
        <version>1.5.2</version>
      </dependency>

      <dependency>
        <groupId>rome</groupId>
        <artifactId>rome</artifactId>
        <version>0.8</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.seraph</groupId>
        <artifactId>atlassian-seraph</artifactId>
        <version>0.20</version>
        <exclusions>
          <exclusion>
            <!-- groupId of oscore is now opensymphony -->
            <groupId>oscore</groupId>
            <artifactId>oscore</artifactId>
          </exclusion>
          <exclusion>
            <!-- groupId of webwork is now opensymphony -->
            <groupId>webwork</groupId>
            <artifactId>webwork</artifactId>
          </exclusion>
          <exclusion>
            <groupId>mockobjects</groupId>
            <artifactId>mockobjects-core</artifactId>
          </exclusion>
          <exclusion>
            <artifactId>mockobjects</artifactId>
            <groupId>mockobjects</groupId>
          </exclusion>
          <exclusion>
            <groupId>mockobjects</groupId>
            <artifactId>mockobjects-jdk1.3-j2ee1.3</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>opensymphony</groupId>
        <artifactId>sitemesh</artifactId>
        <version>2.2.1</version>
      </dependency>

      <dependency>
        <groupId>jivesoftware</groupId>
        <artifactId>smack</artifactId>
        <version>2.2.1</version>
      </dependency>

      <dependency>
        <groupId>jivesoftware</groupId>
        <artifactId>smackx</artifactId>
        <version>2.2.1</version>
      </dependency>

      <dependency>
        <groupId>truezip</groupId>
        <artifactId>truezip</artifactId>
        <version>6.6</version>
      </dependency>

      <dependency>
        <groupId>net.java.dev.urlrewrite</groupId>
        <artifactId>urlrewrite</artifactId>
        <version>2.6.0</version>
      </dependency>

      <dependency>
        <groupId>velocity</groupId>
        <artifactId>velocity</artifactId>
        <version>1.4</version>
      </dependency>

      <dependency>
        <groupId>opensymphony</groupId>
        <artifactId>webwork</artifactId>
        <version>2.2.5</version>
        <exclusions>
          <exclusion>
            <!-- groupId of freemarker is now org.freemarker -->
            <groupId>freemarker</groupId>
            <artifactId>freemarker</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <!--WW2 Deps-->
      <dependency>
        <groupId>opensymphony</groupId>
        <artifactId>xwork</artifactId>
        <version>1.2.3-20070717</version>
      </dependency>

      <dependency>
        <groupId>org.freemarker</groupId>
        <artifactId>freemarker</artifactId>
        <version>2.3.10</version>
      </dependency>
      <!--END WW2 Deps-->

      <dependency>
        <groupId>wrapper</groupId>
        <artifactId>wrapper</artifactId>
        <version>3.2.0</version>
      </dependency>

      <dependency>
        <groupId>xerces</groupId>
        <artifactId>xercesImpl</artifactId>
        <version>2.8.1</version>
      </dependency>

      <dependency>
        <groupId>xml-apis</groupId>
        <artifactId>xml-apis</artifactId>
        <version>1.3.03</version>
      </dependency>

      <dependency>
        <groupId>xmlrpc</groupId>
        <artifactId>xmlrpc</artifactId>
        <version>1.2-b1</version>
      </dependency>

      <dependency>
        <groupId>xpp3</groupId>
        <artifactId>xpp3_min</artifactId>
        <version>1.1.3.4.O</version>
      </dependency>

      <dependency>
        <groupId>com.thoughtworks.xstream</groupId>
        <artifactId>xstream</artifactId>
        <version>1.2.2</version>
      </dependency>

      <dependency>
        <groupId>install4j</groupId>
        <artifactId>i4jruntime</artifactId>
        <version>3.2.4</version>
      </dependency>

      <dependency>
        <groupId>org.acegisecurity</groupId>
        <artifactId>acegi-security</artifactId>
        <version>1.0.4</version>
        <exclusions>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-remoting</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-support</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-mock</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>jfree</groupId>
        <artifactId>jfreechart</artifactId>
        <version>1.0.5</version>
      </dependency>

      <!-- START Spring deps. Adding all to remove possibility of unsynced deps-->
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-aop</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-beans</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-dao</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-hibernate2</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jdbc</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jms</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-mock</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-support</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>${springVersion}</version>
      </dependency>
      <!-- END Spring deps. -->

      <dependency>
        <groupId>aspectj</groupId>
        <artifactId>aspectjrt</artifactId>
        <version>1.5.3</version>
      </dependency>

      <dependency>
        <groupId>aspectj</groupId>
        <artifactId>aspectjweaver</artifactId>
        <version>1.5.3</version>
      </dependency>

      <dependency>
        <groupId>hibernate</groupId>
        <artifactId>hibernate</artifactId>
        <version>2.1.8</version>
      </dependency>

      <dependency>
        <groupId>velocity-tools</groupId>
        <artifactId>velocity-tools</artifactId>
        <version>1.2</version>
      </dependency>

      <dependency>
        <groupId>net.sf.ehcache</groupId>
        <artifactId>ehcache</artifactId>
        <version>1.2.3</version>
      </dependency>


      <!-- Testing. Repeted just to deal with bloody dependencies -->
      <dependency>
        <groupId>org.easymock</groupId>
        <artifactId>easymockclassextension</artifactId>
        <version>2.2.2</version>
        <scope>test</scope>
      </dependency>

      <!-- Axis dependency for SOAP to JIRA -->
      <dependency>
        <groupId>axis</groupId>
        <artifactId>axis</artifactId>
        <version>1.4</version>
      </dependency>

      <!-- Crowd specific libs -->
      <dependency>
        <groupId>org.codehaus.xfire</groupId>
        <artifactId>xfire-all</artifactId>
        <version>1.2.3</version>
      </dependency>
      <dependency>
        <groupId>woodstox</groupId>
        <artifactId>wstx-asl</artifactId>
        <version>2.9.3</version>
      </dependency>
      <dependency>
        <groupId>commons-codec</groupId>
        <artifactId>commons-codec</artifactId>
        <version>1.3</version>
      </dependency>
      <dependency>
        <groupId>jdom</groupId>
        <artifactId>jdom</artifactId>
        <version>1.0</version>
      </dependency>

      <dependency>
        <groupId>javax.transaction</groupId>
        <artifactId>jta</artifactId>
        <version>1.0.1B</version>
      </dependency>

      <dependency>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-core-api-container</artifactId>
        <version>0.9</version>
      </dependency>

      <dependency>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-core-api-generic</artifactId>
        <version>0.9</version>
      </dependency>

      <dependency>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-core-container-tomcat</artifactId>
        <version>0.9</version>
      </dependency>

      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-core</artifactId>
        <version>2.0.7</version>
      </dependency>

      <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.0.2</version>
      </dependency>

      <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-core</artifactId>
        <version>4.1.1</version>
      </dependency>

      <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-ra</artifactId>
        <version>4.1.1</version>
      </dependency>

      <!-- required for applicationContextJMS.xml -->
      <dependency>
        <artifactId>xbean-spring</artifactId>
        <groupId>org.apache.xbean</groupId>
        <version>3.2</version>
      </dependency>

      <dependency>
        <groupId>javax.jms</groupId>
        <artifactId>jms</artifactId>
        <version>1.1</version>
      </dependency>

      <dependency>
        <groupId>commons-pool</groupId>
        <artifactId>commons-pool</artifactId>
        <version>1.3</version>
      </dependency>

      <dependency>
        <groupId>org.jencks</groupId>
        <artifactId>jencks</artifactId>
        <version>2.1</version>
      </dependency>
      <dependency>
        <groupId>org.jencks</groupId>
        <artifactId>jencks-amqpool</artifactId>
        <version>2.1</version>
      </dependency>

      <dependency>
        <groupId>com.intellij</groupId>
        <artifactId>annotations</artifactId>
        <version>6.0.5</version>
      </dependency>

      <dependency>
        <groupId>net.jcip</groupId>
        <artifactId>jcip-annotations</artifactId>
        <version>1.0</version>
      </dependency>

    </dependencies>
  </dependencyManagement>

  <dependencies>

    <dependency>
      <groupId>org.easymock</groupId>
      <artifactId>easymockclassextension</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>com.atlassian.testtools</groupId>
      <artifactId>atlassian-testtools</artifactId>
      <version>1.2</version>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
            <id>enforce-java</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireJavaVersion>
                  <version>1.5.0</version>
                </requireJavaVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <arguments>-Dmaven.test.skip -Prelease-profile</arguments>
          <goals>deploy</goals>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-idea-plugin</artifactId>
        <configuration>
          <dependenciesAsLibraries>true</dependenciesAsLibraries>
          <jdkName>1.5</jdkName>
          <exclude>expanded-agent</exclude>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <webappDirectory>${project.build.directory}/atlassian-bamboo-web-app</webappDirectory>
        </configuration>
      </plugin>

      <plugin>
        <groupId>com.atlassian.maven.plugins</groupId>
        <artifactId>maven-clover-plugin</artifactId>
        <configuration>
          <licenseLocation>${clover.licenseLocation}</licenseLocation>
          <jdk>${jdkLevel}</jdk>
        </configuration>
        <executions>
          <execution>
            <phase>pre-site</phase>
            <goals>
              <goal>instrument</goal>
              <goal>aggregate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

    </plugins>

    <pluginManagement>
      <plugins>
        <!--<plugin>-->
          <!--<artifactId>maven-dependency-plugin</artifactId>-->
          <!--<version>2.0-SNAPSHOT</version>-->
        <!--</plugin>-->
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <configuration>
            <forkMode>never</forkMode>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>

  </build>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
      </plugin>

      <plugin>
        <groupId>com.atlassian.maven.plugins</groupId>
        <artifactId>maven-clover-plugin</artifactId>
        <configuration>
          <licenseLocation>${clover.licenseLocation}</licenseLocation>
          <generatePdf>true</generatePdf>
          <generateXml>true</generateXml>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  <repositories>
    <repository>
      <id>tek42.com</id>
      <url>http://tek42.com/maven2</url>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>never</updatePolicy>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </repositories>
</project>
