<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <name>JBoss BPM - Console::Workspace::API</name>
  <groupId>org.jboss.bpm</groupId>
  <artifactId>gwt-console-workspace-api</artifactId>
  <packaging>jar</packaging>

  <!-- Parent -->
  <parent>
    <groupId>org.jboss.bpm</groupId>
    <artifactId>gwt-console-workspace</artifactId>
    <version>1.1.2</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <properties>
    <jaxb.version>2.1</jaxb.version>
  </properties>
  
  <!--  Dependencies -->
  <dependencies>

    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.1</version>
    </dependency>

    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
      <version>${gwt.version}</version>      
    </dependency>

    <dependency>
      <groupId>com.google.code.gwt-log</groupId>
      <artifactId>gwt-log</artifactId>
    </dependency>

    <dependency>
      <groupId>com.googlecode.gwtmosaic</groupId>
      <artifactId>gwt-mosaic</artifactId>
    </dependency>
    <dependency>
      <groupId>com.googlecode.gwtmosaic</groupId>
      <artifactId>gwt-mosaic-dnd</artifactId>
    </dependency>
    <dependency>
      <groupId>com.googlecode.gwtmosaic</groupId>
      <artifactId>gwt-mosaic-incubator</artifactId>
    </dependency>
    <dependency>
      <groupId>com.googlecode.gwtmosaic</groupId>
      <artifactId>gwt-mosaic-gwtx</artifactId>
    </dependency>

    <dependency>
      <groupId>com.googlecode.mvc4g</groupId>
      <artifactId>mvc4g</artifactId>
    </dependency>

    <!-- 3rd party -->

    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
    </dependency>

    <dependency>
      <groupId>commons-configuration</groupId>
      <artifactId>commons-configuration</artifactId>
    </dependency>


  </dependencies>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
          <showDeprecation>true</showDeprecation>
          <showWarnings>true</showWarnings>
          <optimize>true</optimize>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <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-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-version-class</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <ant antfile="scripts/antrun-version.xml" inheritAll="false" inheritRefs="false">
                  <property name="version" value="${version}" />
                  <property name="src.dir" value="${project.build.directory}/generated-sources" />
                </ant>
              </tasks>
              <sourceRoot>
                ${project.build.directory}/generated-sources
              </sourceRoot>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
