<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>
  <name>JBoss BPM - GWT Console</name>
  <groupId>org.jboss.bpm</groupId>
  <artifactId>gwt-console-parent</artifactId>
  <version>1.0.0.GA</version>
  <packaging>pom</packaging>

  <!-- Parent -->
  <parent>
    <groupId>org.jbpm</groupId>
    <artifactId>jbpm-parent</artifactId>
    <version>1.0.0.GA</version>
  </parent>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <commons.fileupload.version>1.2.1</commons.fileupload.version>
    <commons.io.version>1.3.2</commons.io.version>
    <commons.logging.version>1.1.1</commons.logging.version>
    <commons-lang.version>2.4</commons-lang.version>
    <commons-config.version>1.6</commons-config.version>
    <gson.version>1.2.2</gson.version>
    <gwt.version>1.5.3</gwt.version>

    <gwt-mosaic.version>0.1.10</gwt-mosaic.version>
    <gwt-log.version>2.5.2</gwt-log.version>
    <jaf.version>1.1</jaf.version>
    <javax.ejb.version>3.0</javax.ejb.version>
    <javax.jaxb.version>2.1</javax.jaxb.version>
    <jboss.common.version>2.2.7.GA</jboss.common.version>
    <junit.version>3.8.1</junit.version>
    <mvc4g.version>1.0.0-jboss</mvc4g.version>
    <resteasy.version>1.0.2.GA</resteasy.version>
    <stax-api.version>1.0-2</stax-api.version>
    <report.server.version>1.0.0.GA</report.server.version>
  </properties>

  <modules>
    <module>rpc</module>
    <module>server</module>
    <module>gui</module>
  </modules>

  <dependencyManagement>
    <dependencies>

      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>${commons-lang.version}</version>
      </dependency>

      <dependency>
        <groupId>commons-configuration</groupId>
        <artifactId>commons-configuration</artifactId>
        <version>${commons-config.version}</version>
      </dependency>

      <!-- GWT related -->
      <dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gwt-servlet</artifactId>
        <version>${gwt.version}</version>
      </dependency>
      <dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gwt-user</artifactId>
        <version>${gwt.version}</version>
      </dependency>

      <dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gchart</artifactId>
        <version>${gchart.version}</version>
      </dependency>
      <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>${gson.version}</version>
      </dependency>
      <dependency>
        <groupId>com.google.code.gwt-log</groupId>
        <artifactId>gwt-log</artifactId>
        <version>${gwt-log.version}</version>
      </dependency>

      <dependency>
        <groupId>com.googlecode.gwtmosaic</groupId>
        <artifactId>gwt-mosaic</artifactId>
        <version>${gwt-mosaic.version}</version>
      </dependency>
      <dependency>
        <groupId>com.googlecode.gwtmosaic</groupId>
        <artifactId>gwt-mosaic-dnd</artifactId>
        <version>${gwt-mosaic.version}</version>
      </dependency>
      <dependency>
        <groupId>com.googlecode.gwtmosaic</groupId>
        <artifactId>gwt-mosaic-incubator</artifactId>
        <version>${gwt-mosaic.version}</version>
      </dependency>
      <dependency>
        <groupId>com.googlecode.gwtmosaic</groupId>
        <artifactId>gwt-mosaic-gwtx</artifactId>
        <version>${gwt-mosaic.version}</version>
      </dependency>

      <dependency>
        <groupId>com.googlecode.mvc4g</groupId>
        <artifactId>mvc4g</artifactId>
        <version>${mvc4g.version}</version>
      </dependency>

      <!-- Other -->
      <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>${commons.logging.version}</version>
      </dependency>

      <dependency>
        <groupId>javax.xml.stream</groupId>
        <artifactId>stax-api</artifactId>
        <version>${stax-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.activation</groupId>
        <artifactId>activation</artifactId>
        <version>${jaf.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>${javax.jaxb.version}</version>
      </dependency>
       <dependency>
        <groupId>javax.xml</groupId>
        <artifactId>jaxb-impl</artifactId>
        <version>${javax.jaxb.version}</version>
      </dependency>

      <dependency>
        <groupId>javax.ejb</groupId>
        <artifactId>ejb-api</artifactId>
        <version>${javax.ejb.version}</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.jboss</groupId>
        <artifactId>jboss-common-core</artifactId>
        <version>${jboss.common.version}</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-jaxrs</artifactId>
        <version>${resteasy.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-multipart-provider</artifactId>
        <version>${resteasy.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-fileupload</groupId>
        <artifactId>commons-fileupload</artifactId>
        <version>${commons.fileupload.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>${commons.io.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.bpm</groupId>
        <artifactId>report-core</artifactId>
        <version>${report.server.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <!-- Profiles -->
  <profiles>

    <profile>
      <id>enableTests</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <skipTests>false</skipTests>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

  </profiles>


  <!-- Repositories -->
  <repositories>
    <repository>
      <id>repository.jboss.org</id>
      <url>http://repository.jboss.org/maven2</url>
    </repository>
    <repository>
      <id>snapshots.jboss.org</id>
      <name>JBoss Snapshot Repository</name>
      <url>http://snapshots.jboss.org/maven2</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>gwt-maven</id>
      <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo</url>
    </pluginRepository>
  </pluginRepositories>

</project>
