<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

    <groupId>org.jibx.ota.osgi</groupId>
    <version>1.2.2-beta-1</version>
  <artifactId>jibx-ota-test-bind</artifactId>
  <packaging>jar</packaging>

  <name>jibx-ota-test-bind (Bind test - from spring oxm project)</name>

  <properties>
    <jibx-version>1.2.2</jibx-version>
    <joda-time-version>1.6</joda-time-version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <build>
    <plugins>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.1.1</version>
        <executions>
          <execution>
            <phase>run</phase>
            <goals>
              <goal>exec</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
            <mainClass>org.springframework.oxm.jibx.App</mainClass>
        </configuration>
      </plugin>

      <plugin>
          <groupId>org.jibx</groupId>
          <artifactId>maven-jibx-plugin</artifactId>
          <version>1.2.2</version>
          <configuration>
              <directory>src/test/resources/org/springframework/oxm/jibx</directory>
              <includes>
                  <include>binding.xml</include>
              </includes>
              <load>true</load>
          </configuration>
          <executions>
              <execution>
                  <id>compile-jibx-beans</id>
                  <phase>process-test-classes</phase>
                  <goals>
                      <goal>test-bind</goal>
                  </goals>
              </execution>
          </executions>
      </plugin>

    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>org.jibx</groupId>
      <artifactId>jibx-run</artifactId>
      <version>${jibx-version}</version>
    </dependency>
    <dependency>
      <groupId>org.jibx</groupId>
      <artifactId>jibx-extras</artifactId>
      <version>${jibx-version}</version>
    </dependency>
    <dependency>  <!-- Why isn't this a jibx dependency? -->
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>${joda-time-version}</version>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
