<?xml version="1.0" encoding="UTF-8"?>
<!--
- Author: tlerios@marketcetera.com
- Since: 0.5.0
- Version: $Id: pom.xml 16948 2014-09-26 17:44:47Z colin $
- $License$
-->
<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>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>
  <groupId>org.marketcetera</groupId>
  <artifactId>public-parent</artifactId>
  <version>2.4.2</version>
  <packaging>pom</packaging>
  <name>Marketcetera Public Sources Parent POM</name>
  <description>The root of Marketcetera public sources.</description>
  <url>http://www.marketcetera.org</url>
  <licenses>
    <license>
      <name>GNU General Public License (GPL)</name>
      <url>http://www.gnu.org/licenses/gpl.html</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>team</id>
      <name>Marketcetera Team</name>
      <roles>
        <role>Owner</role>
      </roles>
    </developer>
  </developers>
  <properties>
    <mvn.javase.version>7</mvn.javase.version>
    <mvn.javaee.version>5</mvn.javaee.version>
    <mvn.spring.version>4.0.2.RELEASE</mvn.spring.version>
    <mvn.cxf.version>2.7.10</mvn.cxf.version>
    <mvn.querydsl.version>3.3.1</mvn.querydsl.version>
    <mvn.springdatajpa.version>1.5.0.RELEASE</mvn.springdatajpa.version>
    <mvn.eclipse.version>3.8.2</mvn.eclipse.version>
    <mvn.hibernate.version>4.2.8.Final</mvn.hibernate.version>
    <mvn.test.options>-Xmx1024m -Xms128m -XX:MaxPermSize=512m</mvn.test.options>
  </properties>
  <!-- Marketcetera uses the following versions of some common libraries:
       jaxb:  2.2.6 (provided by Java7, not CXF)
       asm:   4.0
       cglib: 3.1 -->
  <dependencyManagement>
    <dependencies>
      <!-- Compile: local modules -->
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>client</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>core</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>migration</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>orderloader</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>strategyagent</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}.fork</groupId>
        <artifactId>commons-csv</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>marketdata-bogus</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>marketdata-core</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>marketdata-marketcetera</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>marketdata-yahoo</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>marketdata-csv</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>misc</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>strategy</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>util</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>cep-system</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>cep-esper</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>remote-receiver</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>remote-emitter</artifactId>
        <version>2.4.2</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>saclient</artifactId>
        <version>2.4.2</version>
      </dependency>
      <!-- Compile: QuickFIX/J -->
      <dependency>
        <groupId>quickfixj</groupId>
        <artifactId>quickfixj-all</artifactId>
        <version>1.5.3-bd</version>
      </dependency>
      <!-- Compile: CXF -->
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-frontend-jaxws</artifactId>
        <version>${mvn.cxf.version}</version>
        <exclusions>
          <exclusion>
            <groupId>asm</groupId>
            <artifactId>asm</artifactId>
          </exclusion>
          <!-- exclude jaxb-impl because it's included with Java 7 -->
          <exclusion>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.creditanalytics</groupId>
        <artifactId>creditanalytics</artifactId>
        <version>2.2.2</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-transports-http</artifactId>
        <version>${mvn.cxf.version}</version>
      </dependency>
      <!-- Compile: Spring -->
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>${mvn.spring.version}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>${mvn.spring.version}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-beans</artifactId>
        <version>${mvn.spring.version}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-aop</artifactId>
        <version>${mvn.spring.version}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-tx</artifactId>
        <version>${mvn.spring.version}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>${mvn.spring.version}</version>
        <exclusions>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jms</artifactId>
        <version>${mvn.spring.version}</version>
        <exclusions>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-tx</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-data-jpa</artifactId>
        <version>${mvn.springdatajpa.version}</version>
        <exclusions>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-tx</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <!-- Compile: Other -->
      <dependency>
        <groupId>com.hazelcast</groupId>
        <artifactId>hazelcast</artifactId>
        <version>3.3</version>
      </dependency> 
      <dependency>
        <groupId>com.hazelcast</groupId>
        <artifactId>hazelcast-spring</artifactId>
        <version>3.3</version>
      </dependency> 
      <dependency>
        <groupId>org.ow2.asm</groupId>
        <artifactId>asm</artifactId>
        <version>4.0</version>
      </dependency>
      <dependency>
        <groupId>org.skife.kasparov</groupId>
        <artifactId>csv</artifactId>
        <version>1.0</version>
      </dependency>
      <dependency>
        <groupId>net.java.dev.glazedlists</groupId>
        <artifactId>glazedlists_java15</artifactId>
        <version>1.9.0</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.7.6</version>
      </dependency>
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.4</version>
      </dependency>
      <dependency>
        <groupId>commons-cli</groupId>
        <artifactId>commons-cli</artifactId>
        <version>1.2</version>
      </dependency>
      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.6</version>
      </dependency>
      <dependency>
        <groupId>commons-codec</groupId>
        <artifactId>commons-codec</artifactId>
        <version>1.9</version>
      </dependency>
      <dependency>
        <groupId>commons-collections</groupId>
        <artifactId>commons-collections</artifactId>
        <version>3.2.1</version>
      </dependency>
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-i18n</artifactId>
        <version>20081024</version>
      </dependency>
      <dependency>
        <groupId>commons-beanutils</groupId>
        <artifactId>commons-beanutils</artifactId>
        <version>1.9.1</version>
      </dependency>
      <dependency>
        <groupId>org.hibernate.javax.persistence</groupId>
        <artifactId>hibernate-jpa-2.0-api</artifactId>
        <version>1.0.1.Final</version>
      </dependency>
      <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>${mvn.hibernate.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.5</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jstl</artifactId>
        <version>1.2</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>taglibs</groupId>
        <artifactId>standard</artifactId>
        <version>1.1.2</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.ccil.cowan.tagsoup</groupId>
        <artifactId>tagsoup</artifactId>
        <version>1.2.1</version>
      </dependency>
      <dependency>
        <groupId>org.apache.bsf</groupId>
        <artifactId>com.springsource.org.apache.bsf</artifactId>
        <version>2.4.0</version>
      </dependency>
      <dependency>
        <groupId>org.jruby</groupId>
        <artifactId>jruby</artifactId>
        <version>1.7.8</version>
      </dependency>
      <dependency>
        <groupId>cglib</groupId>
        <artifactId>cglib</artifactId>
        <version>3.1</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>com.espertech</groupId>
        <artifactId>esper</artifactId>
        <version>4.11.0</version>
        <!-- esper requires cglib-nodep 2.2 which conflicts in principle with cglib 3.0 -->
        <!-- for now, both are packaged with the SA and Photon :-o -->
        <!--exclusions>
            <exclusion>
            <groupId>cglib</groupId>
            <artifactId>cglib-nodep</artifactId>
            </exclusion>
            </exclusions-->
      </dependency>
      <dependency>
        <groupId>org.apache.geronimo.specs</groupId>
        <artifactId>geronimo-jms_1.1_spec</artifactId>
        <version>1.1.1</version>
      </dependency>
      <dependency>
        <groupId>joda-time</groupId>
        <artifactId>joda-time</artifactId>
        <version>2.3</version>
      </dependency>
      <dependency>
        <groupId>org.joda</groupId>
        <artifactId>joda-primitives</artifactId>
        <version>1.0</version>
      </dependency>
      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>16.0.1</version>
      </dependency>
      <dependency>
        <groupId>org.ops4j</groupId>
        <artifactId>peaberry</artifactId>
        <version>1.1.1</version>
      </dependency>
      <dependency>
        <groupId>org.ops4j</groupId>
        <artifactId>peaberry.eclipse</artifactId>
        <version>1.1.1</version>
      </dependency>
      <dependency>
        <groupId>com.google.inject</groupId>
        <artifactId>guice</artifactId>
        <version>2.0</version>
      </dependency>
      <dependency>
        <groupId>com.google.code.findbugs</groupId>
        <artifactId>jsr305</artifactId>
        <version>2.0.3</version>
      </dependency>
      <dependency>
        <groupId>org.ow2.sirocco</groupId>
        <artifactId>sirocco-text-table-formatter</artifactId>
        <version>1.0</version>
      </dependency>
      <dependency>
        <groupId>jparsec</groupId>
        <artifactId>jparsec</artifactId>
        <version>2.0.1</version>
        <exclusions>
          <exclusion>
            <groupId>asm</groupId>
            <artifactId>asm</artifactId>
          </exclusion>
          <exclusion>
            <groupId>cglib</groupId>
            <artifactId>cglib</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>com.google.protobuf</groupId>
        <artifactId>protobuf-java</artifactId>
        <version>2.5.0</version>
      </dependency>
      <dependency>
        <groupId>com.googlecode.protobuf-rpc-pro</groupId>
        <artifactId>protobuf-streamer-pro</artifactId>
        <version>1.2.3</version>
      </dependency>
      <dependency>
        <groupId>com.googlecode.protobuf-rpc-pro</groupId>
        <artifactId>protobuf-rpc-pro-duplex</artifactId>
        <version>3.2.2</version>
      </dependency>
      <dependency>
        <groupId>io.netty</groupId>
        <artifactId>netty</artifactId>
        <version>3.8.1.Final</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>com.jcraft</groupId>
        <artifactId>jzlib</artifactId>
        <version>1.1.2</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>com.mysema.querydsl</groupId>
        <artifactId>querydsl-core</artifactId>
        <version>${mvn.querydsl.version}</version>
        <exclusions>
          <exclusion>
            <groupId>asm</groupId>
            <artifactId>asm</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>com.mysema.querydsl</groupId>
        <artifactId>querydsl-apt</artifactId>
        <version>${mvn.querydsl.version}</version>
      </dependency>
      <dependency>
        <groupId>com.mysema.querydsl</groupId>
        <artifactId>querydsl-jpa</artifactId>
        <version>${mvn.querydsl.version}</version>
      </dependency>
      <dependency>
        <groupId>com.mysema.querydsl</groupId>
        <artifactId>querydsl-sql</artifactId>
        <version>${mvn.querydsl.version}</version>
      </dependency>
      <!-- Runtime. -->
      <dependency>
        <groupId>com.hazelcast</groupId>
        <artifactId>hazelcast-hibernate4</artifactId>
        <version>3.3</version>
        <scope>runtime</scope>
      </dependency> 
      <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-pool</artifactId>
        <version>5.9.0</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-broker</artifactId>
        <version>5.9.0</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-stomp</artifactId>
        <version>5.9.0</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-jaas</artifactId>
        <version>5.9.0</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>${mvn.spring.version}</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>1.7.6</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>commons-pool</groupId>
        <artifactId>commons-pool</artifactId>
        <version>1.6</version>
        <exclusions>
          <!-- Exclude xerces as it pulls in an older buggy version. -->
          <exclusion>
            <groupId>xerces</groupId>
            <artifactId>xerces</artifactId>
          </exclusion>
          <!-- Exclude xml-apis, standard JRE ones are preferable. -->
          <exclusion>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
          </exclusion>
        </exclusions>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-transports-http-jetty</artifactId>
        <version>${mvn.cxf.version}</version>
        <scope>runtime</scope>
        <exclusions>
          <!-- Exclude slf4j-jdk14, let application choose slf4j binding. -->
          <exclusion>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-jdk14</artifactId>
          </exclusion>
          <!-- exclude jaxb-impl because it's included with Java 7 -->
          <exclusion>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.apache.geronimo.specs</groupId>
        <artifactId>geronimo-jta_1.1_spec</artifactId>
        <version>1.1.1</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.xbean</groupId>
        <artifactId>xbean-spring</artifactId>
        <version>3.16</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>5.1.29</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.derby</groupId>
        <artifactId>derby</artifactId>
        <version>10.10.1.1</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>hsqldb</groupId>
        <artifactId>hsqldb</artifactId>
        <version>1.8.0.10</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-entitymanager</artifactId>
        <version>${mvn.hibernate.version}</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
        <version>9.3-1101-jdbc41</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-c3p0</artifactId>
        <version>${mvn.hibernate.version}</version>
        <scope>runtime</scope>
      </dependency>       
      <dependency>
        <groupId>colt</groupId>
        <artifactId>colt</artifactId>
        <version>1.2.0</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.mina</groupId>
        <artifactId>mina-core</artifactId>
        <version>1.1.7</version> <!-- 2.0.7 held up by QFJ -->
        <scope>runtime</scope>
      </dependency>
      <!-- Testing: local modules. -->
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>core</artifactId>
        <version>2.4.2</version>
        <type>test-jar</type>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>util-test</artifactId>
        <version>2.4.2</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>cep-system</artifactId>
        <version>2.4.2</version>
        <type>test-jar</type>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>client</artifactId>
        <version>2.4.2</version>
        <type>test-jar</type>
        <scope>test</scope>
      </dependency>
      <!-- Testing: other. -->
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-test</artifactId>
        <version>${mvn.spring.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-orm</artifactId>
        <version>${mvn.spring.version}</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jdbc</artifactId>
        <version>${mvn.spring.version}</version>
        <scope>runtime</scope>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.11</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.easymock</groupId>
        <artifactId>easymockclassextension</artifactId>
        <version>3.2</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>1.9.5</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.objenesis</groupId>
        <artifactId>objenesis</artifactId>
        <version>2.1</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.hamcrest</groupId>
        <artifactId>hamcrest-library</artifactId>
        <version>1.3</version>
        <scope>test</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <!-- **** PLUGIN MANAGEMENT SECTION **** -->
    <pluginManagement>
      <plugins>
        <!-- jar generation. -->
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.4</version>
          <executions>
            <execution>
              <id>build-test-jar</id>
              <goals>
                <goal>test-jar</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <!-- source jar generation -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-source-plugin</artifactId>
          <executions>
            <execution>
              <id>attach-sources</id>
              <goals>
                <goal>jar</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-gpg-plugin</artifactId>
          <executions>
            <execution>
              <id>sign-artifacts</id>
              <phase>verify</phase>
              <goals>
                <goal>sign</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <!-- war generation. -->
        <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.1-alpha-1</version>
        </plugin>
        <!-- bundle generation. -->
        <plugin>
          <groupId>org.apache.felix</groupId>
          <artifactId>maven-bundle-plugin</artifactId>
          <version>2.3.5</version>
        </plugin>
        <!-- mvn dependency:* -->
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.0</version>
        </plugin>
        <!-- mvn eclipse:* -->
        <plugin>
          <artifactId>maven-eclipse-plugin</artifactId>
          <version>2.9</version>
        </plugin>
        <!-- mvn clean -->
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>2.3</version>
        </plugin>
        <!-- mvn antrun:* -->
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.3</version>
          <dependencies>
            <dependency>
              <groupId>org.apache.ant</groupId>
              <artifactId>ant-junit</artifactId>
              <!--
                  - Temporariy remove the brackets around the version
                  - because the central repo metadata was missing this
                  - version (http://jira.codehaus.org/browse/MANTRUN-113)
                  - Removing the brackets will cause the JAR to ultimately
                  - come from our internal repo.
              -->
              <version>1.7.1</version>
            </dependency>
          </dependencies>
        </plugin>
        <!-- mvn exec:* -->
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <version>1.2.1</version>
        </plugin>
        <!-- mvn test -->
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.4.3</version>
          <configuration>
            <disableXmlReport>false</disableXmlReport>
            <forkMode>always</forkMode>
            <argLine>${mvn.test.options}</argLine>
          </configuration>
        </plugin>
        <!-- mvn compile -->
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.0.2</version>
          <configuration>
            <source>1.${mvn.javase.version}</source>
            <target>1.${mvn.javase.version}</target>
          </configuration>
        </plugin>
        <!-- mvn javadoc:* -->
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.5</version>
        </plugin>
        <!-- mvn assembly:* -->
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <!-- Version 2.2-beta-2 throws NPE under dependency management. -->
          <version>2.3</version>
          <configuration>
            <finalName>${project.artifactId}</finalName>
            <appendAssemblyId>false</appendAssemblyId>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <!-- **** PLUGINS SECTION **** -->
    <plugins>
      <!-- source jar generation -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <!-- Place tests into a jar for use during testing of other packages -->
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
      </plugin>
      <!-- Adds the build number to each JAR -->
      <plugin>
        <groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
        <artifactId>svn-revision-number-maven-plugin</artifactId>
        <version>1.13</version>
        <executions>
          <execution>
            <goals>
              <goal>revision</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <entries>
            <entry>
              <prefix>svn</prefix>
            </entry>
          </entries>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.tmatesoft.svnkit</groupId>
            <artifactId>svnkit</artifactId>
            <version>1.8.3-1</version>
          </dependency>
          <dependency>
            <groupId>org.tmatesoft.sqljet</groupId>
            <artifactId>sqljet</artifactId>
            <version>1.1.6</version>
          </dependency>
          <dependency>
            <groupId>de.regnis.q.sequence</groupId>
            <artifactId>sequence-library</artifactId>
            <version>1.0.2</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>2.5</version>
      </extension>
    </extensions>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
        <includes>
          <include>**/metc_version.properties</include>
        </includes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>false</filtering>
        <excludes>
          <exclude>**/metc_version.properties</exclude>
        </excludes>
      </resource>
    </resources>
  </build>
  <profiles>
    <profile>
      <id>release-sign-artifacts</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.1</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.5</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <doctitle>Marketcetera Platform ${project.version} API</doctitle>
              <windowtitle>Marketcetera Platform ${project.version} API</windowtitle>
              <overview>tools/javadoc/overview.html</overview>
              <links>
                <link>http://commons.apache.org/cli/api-release/</link>
                <link>http://commons.apache.org/collections/api-release/</link>
                <link>http://commons.apache.org/io/api-release/</link>
                <link>http://commons.apache.org/lang/api-release/</link>
                <link>http://commons.apache.org/vfs/apidocs/</link>
                <link>http://java.sun.com/javaee/${mvn.javaee.version}/docs/api/</link>
                <link>http://java.sun.com/javase/${mvn.javase.version}/docs/api/</link>
                <link>http://logging.apache.org/log4j/1.2/apidocs/</link>
                <link>http://publicobject.com/glazedlists/glazedlists-1.7.0/api/</link>
                <link>http://static.springframework.org/spring/docs/2.5.2/api/</link>
                <link>http://www.quickfixj.org/quickfixj/javadoc/1.5.1</link>
              </links>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>    
  </profiles>
  <modules>
    <module>client</module>
    <module>core</module>
    <module>fork</module>
    <module>modules</module>
    <module>orderloader</module>
    <!-- Build strategy agent before photon. -->
    <module>saclient</module>
    <module>strategyagent</module>
    <module>photon</module>
    <module>util</module>
    <module>util-test</module>
    <module>tools</module>
  </modules>
  <repositories>
    <!--
        -  The central repository used to be included here due to a bug
        -  in Maven 2.0.9. Without this inclusion, Maven used to find
        -  commons-i18n in the central repo (versions 0.4 and 0.5) and in
        -  the internal repo (20yymmdd). Since we need 20yymmdd, Maven
        -  downloaded the pom from the internal repo, but then tried to
        -  fetch the jar from the central repo, where it does not exist.
        -  Thus Maven failed to resolve the commons-i18n artifact. The
        -  workaround was to search central ahead of internal. This odd
        -  behaviour stopped at some point, prob. due to the order of
        -  artifact resolution, and then another problem came up where
        -  esper would have its pom located in the central repo, but then
        -  its jar would be downloaded from the internal repo (where an
        -  an older version of esper resided, but not the sought-after
        -  jar). So builds failed again. That was when the central repo
        -  was removed from here, and builds worked fine again (and the
        -  commons-i18n issue did not resurface). This comment was kept in
        -  place because Maven 2.0.10 and 2.1.0 failed to resolve esper
        -  correctly when the central repo was placed here, indicating this
        -  is a still-outstanding Maven issue that might require a future
        -  workaround.
        -
        -  <repository>
        -    <id>central</id>
        -    <url>http://repo1.maven.org/maven2</url>
        -    <snapshots>
        -      <enabled>false</enabled>
        -    </snapshots>
        -  </repository>
    -->
    <repository>
      <id>com.springsource.repository.bundles.release</id>
      <name>EBR Spring Release Repository</name>
      <url>http://repository.springsource.com/maven/bundles/release</url>
    </repository>
    <repository>
      <id>com.springsource.repository.bundles.external</id>
      <name>EBR External Release Repository</name>
      <url>http://repository.springsource.com/maven/bundles/external</url>
    </repository>
    <repository>
      <id>central</id>
      <url>http://repo1.maven.org/maven2</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>java.net</id>
      <url>http://download.java.net/maven/2</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>internal</id>
      <url>http://repo.marketcetera.org/maven</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>maven2-repository.dev.java.net</id>
      <url>http://download.java.net/maven/2</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </pluginRepository>
    <pluginRepository>
      <id>internal</id>
      <url>http://repo.marketcetera.org/maven</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>
  <scm>
    <url>http://source.marketcetera.org/root/trunk</url>
    <connection>scm:svn:http://source.marketcetera.org/root/trunk</connection>
    <developerConnection>scm:svn:http://source.marketcetera.org/root/trunk</developerConnection>
  </scm>
</project>
