<?xml version="1.0" encoding="utf-8"?>

<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"
  >

  <parent>
    <groupId>org.dada</groupId>
    <artifactId>dada</artifactId>
    <version>1.0-SNAPSHOT</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <artifactId>dada-swt</artifactId>
  <packaging>jar</packaging>
  <name>DADA :: SWT</name>
  <description>DADA/SWT Integration</description>

  <properties> 
    <nattable.version>2.3.2</nattable.version>
    <glazedlists.version>1.8.0</glazedlists.version>
  </properties>
  
  <profiles>
    <profile>
      <id>linux-i386</id>
      <activation>
	<os>
	  <name>Linux</name>
	  <arch>i386</arch>
	</os>
      </activation>
      <dependencies>
	<dependency>
	  <groupId>org.eclipse</groupId>
	  <artifactId>swt</artifactId>
	  <version>gtk.linux.x86_3.6.0.v3644b</version>
	</dependency>
      </dependencies>
    </profile>
    <profile>
      <id>linux-x86_64</id>
      <activation>
	<os>
	  <name>Linux</name>
	  <arch>amd64</arch>
	</os>
      </activation>
      <dependencies>
	<dependency>
	  <groupId>org.eclipse</groupId>
	  <artifactId>swt</artifactId>
	  <version>gtk.linux.x86_64_3.6.2.v3659b</version> 
	</dependency>
      </dependencies>
    </profile>
    <profile>
      <id>windows</id>
      <activation>
	<os>
          <family>Windows</family>
	</os>
      </activation>
      <dependencies>
	<dependency>
	  <groupId>org.eclipse</groupId>
	  <artifactId>swt</artifactId>
	  <version>win32.win32.x86_3.4.1.v3452b</version>
	</dependency>
      </dependencies>
    </profile>
  </profiles>
  
  <dependencies>
    <dependency>
      <groupId>org.eclipse.ui</groupId>
      <artifactId>workbench</artifactId>
      <version>3.6.0.I20100428-1300</version>
    </dependency>
    <dependency>
      <groupId>org.eclipse.equinox</groupId>
      <artifactId>common</artifactId>
      <version>3.6.0.v20100315</version>
    </dependency>
    <dependency>
      <groupId>org.eclipse.core</groupId>
      <artifactId>commands</artifactId>
      <version>3.6.0.I20100122-0800</version>
    </dependency>
    <dependency>
      <groupId>org.eclipse.equinox</groupId>
      <artifactId>registry</artifactId>
      <version>3.5.0.v20100301</version>
    </dependency>
    <dependency>
      <groupId>org.eclipse</groupId>
      <artifactId>jface</artifactId>
      <version>3.6.0.I20100425-1800</version>
    </dependency>
    <dependency>
      <groupId>ca.odell</groupId>
      <artifactId>glazedlists</artifactId>
      <version>${glazedlists.version}</version>
    </dependency>
    <dependency>
      <groupId>net.sourceforge.nattable</groupId>
      <artifactId>core</artifactId>
      <version>${nattable.version}</version>
    </dependency>
    <dependency>
      <groupId>net.sourceforge.nattable.extension</groupId>
      <artifactId>glazedlists</artifactId>
      <version>${nattable.version}</version>
    </dependency>
    <dependency>
      <groupId>org.dada</groupId>
      <artifactId>dada-clojure</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.dada</groupId>
      <artifactId>dada-core</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.dada</groupId>
      <artifactId>dada-jms</artifactId>
      <version>${project.version}</version>
    </dependency>
<!--
    <dependency>
      <groupId>org.swtchart</groupId>
      <artifactId>swtchart</artifactId>
      <version>0.6.0</version>
    </dependency>
-->
  </dependencies>

  <build>
    <plugins>

      <plugin>
	<artifactId>maven-resources-plugin</artifactId>
	<version>2.4.2</version>
	<executions>
	  <execution>
	    <id>copy-clojure-src</id>
	    <phase>process-resources</phase>
	    <goals>
              <goal>copy-resources</goal>
	    </goals>
	    <configuration>
              <overwrite>true</overwrite>
              <outputDirectory>${basedir}/target/classes</outputDirectory>
              <resources>
		<resource>
		  <directory>src/main/clojure</directory>
		</resource>
              </resources>
	    </configuration>
	  </execution>
	</executions>
      </plugin>
      
      <plugin>
	<groupId>com.theoryinpractise</groupId>
	<artifactId>clojure-maven-plugin</artifactId>
	<version>${clojure-maven-plugin.version}</version>
	<configuration>
	  <warnOnReflection>true</warnOnReflection>
	  <namespaces>
            <namespace>org.dada.swt.*</namespace>
            <namespace>!org.dada.swt.main</namespace>
	  </namespaces>
	</configuration>
	<executions>
	  <execution>
            <id>clojure-compile</id>
            <phase>compile</phase>
            <goals>
              <goal>compile</goal>
            </goals>
	  </execution>
	</executions>
      </plugin>
    </plugins>
  </build>

</project>
