<?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">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.cloudhoist</groupId>
    <artifactId>parent-pom</artifactId>
    <version>0.1.3</version>
  </parent>
  <groupId>org.cloudhoist</groupId>
  <artifactId>pallet-vmfest</artifactId>
  <version>0.3.0-alpha.2</version>
  <packaging>jar</packaging>
  <name>Pallet vmfest provider</name>
  <description>
    A provider for using Pallet with Vmfest.

    Vmfest is a clojure library for using virtualbox.

    Pallet is a platform for agile and programmatic automation of infrastructure
    in the cloud, on server racks or directly on virtual machines. Pallet
    provides cloud provider and operating system independence, and allows for an
    unprecedented level of customization.
  </description>
  <url>http://palletops.com</url>
  <inceptionYear>2010</inceptionYear>

  <scm>
    <connection>scm:git:git://github.com/pallet/pallet-vmfest.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/pallet/pallet-vmfest.git</developerConnection>
    <url>http://github.com/pallet/pallet-vmfest</url>
  </scm>

  <build>
    <sourceDirectory>src</sourceDirectory>
    <testSourceDirectory>test</testSourceDirectory>
    <resources>
      <resource>
        <directory>src</directory>
      </resource>
      <resource>
        <directory>resources</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>test-resources</directory>
      </testResource>
    </testResources>
    <plugins>
      <plugin>
        <groupId>org.cloudhoist.plugin</groupId>
        <artifactId>zi</artifactId>
        <configuration>
          <marginaliaTargetDirectory>doc</marginaliaTargetDirectory>
          <codoxTargetDirectory>doc/api/${pallet-vmfest.doc.version}</codoxTargetDirectory>
          <codoxApiVersion>${pallet-vmfest.doc.version}</codoxApiVersion>
          <codoxWriter>codox-md.writer/write-docs</codoxWriter>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.0</version>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.2.2</version>
        <configuration>
          <releaseProfiles>xpcom</releaseProfiles>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>org.clojure</groupId>
      <artifactId>clojure</artifactId>
      <version>${clojure.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.cloudhoist</groupId>
      <artifactId>pallet</artifactId>
      <version>${pallet.version}</version>
      <scope>test</scope>
    </dependency>
   <dependency>
      <groupId>org.cloudhoist</groupId>
      <artifactId>pallet</artifactId>
      <version>${pallet.version}</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>midje</groupId>
      <artifactId>midje</artifactId>
      <version>1.4.0-beta2</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>useful</groupId>
      <artifactId>useful</artifactId>
      <version>0.8.3-alpha6</version>
    </dependency>

    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <version>1.0.9</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>vmfest</groupId>
      <artifactId>vmfest</artifactId>
      <version>${vmfest.version}</version>
    </dependency>
  </dependencies>

  <profiles>
    <profile>
      <id>ws</id>
      <dependencies>
        <dependency>
          <groupId>org.clojars.tbatchelli</groupId>
          <artifactId>vboxjws</artifactId>
          <version>4.2.4</version>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>xpcom</id>
      <dependencies>
        <dependency>
          <groupId>org.clojars.tbatchelli</groupId>
          <artifactId>vboxjxpcom</artifactId>
          <version>4.2.4</version>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>live-test</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.cloudhoist.plugin</groupId>
            <artifactId>zi</artifactId>
            <configuration>
              <initScript>
                (System/setProperty "ssh.username" "testuser")
                (System/setProperty "pallet.test.live" "true")
                (System/setProperty
                  "pallet.test.service-name" "${pallet.test.service-name}")
                (System/setProperty
                  "pallet.test.cleanup-nodes" "${pallet.test.cleanup-nodes}")
                (System/setProperty
                  "pallet.test.image-list" "${pallet.test.image-list}")
                (System/setProperty
                  "pallet.test.parallel" "${pallet.test.parallel}")
                (System/setProperty
                  "pallet.test.session-type" "${pallet.test.session-type}")
              </initScript>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <pallet.test.service-name>live-test</pallet.test.service-name>
        <pallet.test.cleanup-nodes>true</pallet.test.cleanup-nodes>
        <pallet.test.parallel>false</pallet.test.parallel>
        <pallet.test.image-list />
        <pallet.test.session-type />
      </properties>
    </profile>
    <profile>
      <id>testuser</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.cloudhoist.plugin</groupId>
            <artifactId>zi</artifactId>
            <configuration>
              <initScript>
                (System/setProperty "ssh.username" "testuser")
              </initScript>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <developers>
    <developer>
      <name>Hugo Duncan</name>
      <id>hugoduncan</id>
      <email>hugo -at- hugoduncan -dot- org</email>
      <roles>
        <role>PMC</role>
        <role>Developer</role>
      </roles>
      <timezone>-5</timezone>
    </developer>
  </developers>

  <properties>
    <vmfest.version>0.3.0-alpha.2</vmfest.version>
    <pallet.version>0.7.2</pallet.version>
    <pallet-vmfest.doc.version>0.3</pallet-vmfest.doc.version>
  </properties>

</project>
