<?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/xsd/maven-4.0.0.xsd">
  
  <modelVersion>4.0.0</modelVersion>
  
  <parent>
    <groupId>org.daisy</groupId>
    <artifactId>daisy</artifactId>
    <version>5</version>
    <relativePath />
  </parent>
  
  <groupId>org.daisy.maven</groupId>
  <artifactId>xprocspec-runner</artifactId>
  <version>1.2.3</version>
  <packaging>bundle</packaging>
  <name>xprocspec-runner</name>
  
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.daisy.pipeline</groupId>
        <artifactId>framework-bom</artifactId>
        <version>1.13.0</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  
  <dependencies>
    <dependency>
      <groupId>org.daisy.maven</groupId>
      <artifactId>xproc-engine-api</artifactId>
      <version>1.3.0</version>
    </dependency>
    <dependency>
      <groupId>org.daisy.xprocspec</groupId>
      <artifactId>xprocspec</artifactId>
      <version>1.3.0</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.daisy.libs</groupId>
      <artifactId>saxon-he</artifactId>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.daisy.maven</groupId>
      <artifactId>xproc-engine-calabash</artifactId>
      <version>1.1.3</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.daisy.pipeline</groupId>
      <artifactId>modules-registry</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.daisy.pipeline</groupId>
      <artifactId>xmlcatalog</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.daisy.pipeline</groupId>
      <artifactId>calabash-adapter</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.compendium</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.daisy.pipeline</groupId>
      <artifactId>ds-to-spi-runtime</artifactId>
      <version>1.0.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-all</artifactId>
      <version>1.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>1.7.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.daisy.pipeline.build</groupId>
        <artifactId>modules-build-helper</artifactId>
        <version>2.3.0</version>
        <executions>
          <execution>
            <id>process-catalog</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>process-catalog</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <trimStackTrace>false</trimStackTrace>
          <systemPropertyVariables>
            <org.slf4j.simpleLogger.logFile>${project.build.directory}/test.log</org.slf4j.simpleLogger.logFile>
            <org.slf4j.simpleLogger.log.com.xmlcalabash>trace</org.slf4j.simpleLogger.log.com.xmlcalabash>
          </systemPropertyVariables>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <instructions>
            <!-- Saxon version must match version from framework-bom -->
            <!-- Remove upper version bound of org.daisy.common.xproc.calabash dependency and assume
                 that XProcStepProvider, which is the only used class from that package, will not
                 change in the future. We do this to avoid having to update xprocspec-runner too
                 frequently (with sometimes circular dependencies as a result). -->
            <Import-Package>
              net.sf.saxon.*;version="[9.8.0,9.8.1)",
              org.daisy.common.xproc.calabash;version="2.1",
              !org.daisy.common.spi,
              *
            </Import-Package>
            <_dsannotations>
              org.daisy.maven.xproc.xprocspec.XProcSpecRunner,
              org.daisy.maven.xproc.xprocspec.logging.pipeline.impl.MessageStepProvider,
              org.daisy.pipeline.modules.impl.Module_xprocspec_runner
            </_dsannotations>
            <Require-Bundle>org.daisy.xprocspec</Require-Bundle>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.daisy.pipeline.build</groupId>
        <artifactId>ds-to-spi-maven-plugin</artifactId>
        <version>1.0.0</version>
          <executions>
            <execution>
              <id>generate-spi-classes</id>
              <phase>generate-sources</phase>
              <goals>
                <goal>generate-spi-classes</goal>
              </goals>
              <configuration>
                <includes>
                  org.daisy.maven.xproc.xprocspec.XProcSpecRunner,
                  org.daisy.maven.xproc.xprocspec.logging.pipeline.impl.MessageStepProvider,
                  org.daisy.pipeline.modules.impl.Module_xprocspec_runner
                </includes>
              </configuration>
            </execution>
          </executions>
        </plugin>
    </plugins>
  </build>

  <scm>
    <tag>v1.2.3</tag>
  </scm>
</project>
