<?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>
    <artifactId>transaction</artifactId>
    <groupId>org.apache.aries.transaction</groupId>
    <version>0.3</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.aries.transaction</groupId>
  <artifactId>org.apache.aries.transaction.manager</artifactId>
  <packaging>bundle</packaging>
  <name>Apache Aries Transaction Manager</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>unpack-sources</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>org.apache.geronimo.components</groupId>
                  <artifactId>geronimo-transaction</artifactId>
                  <classifier>sources</classifier>
                </artifactItem>
                <artifactItem>
                  <groupId>org.objectweb.howl</groupId>
                  <artifactId>howl</artifactId>
                  <classifier>sources</classifier>
                </artifactItem>
              </artifactItems>
              <outputDirectory>${project.build.directory}/sources</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <copy>
                  <fileset />
                </copy>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>org.apache.geronimo.components:geronimo-transaction</include>
                  <include>org.objectweb.howl:howl</include>
                  <include>${project.groupId}:${project.artifactId}</include>
                </includes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>org.apache.geronimo.components:geronimo-transaction</artifact>
                  <excludes>
                    <exclude>org/**</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>org.objectweb.howl:howl</artifact>
                  <excludes>
                    <exclude>org/**</exclude>
                  </excludes>
                </filter>
              </filters>
              <createSourcesJar>true</createSourcesJar>
              <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
              <createDependencyReducedPom>true</createDependencyReducedPom>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.5.11</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-jta_1.1_spec</artifactId>
      <version>1.1.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-j2ee-connector_1.5_spec</artifactId>
      <version>2.0.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-tx</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>aopalliance</groupId>
      <artifactId>aopalliance</artifactId>
      <version>1.0</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <properties>
    <aries.osgi.activator>org.apache.aries.transaction.Activator</aries.osgi.activator>
    <aries.osgi.import>org.springframework.*;resolution:=optional;version="[2.5,4)",
            !org.apache.geronimo.transaction*,
            javax.resource.spi;version="1.5";resolution:=optional,
            org.osgi.framework;version="1.4",
            org.osgi.service.cm;version="[1.2.0,2.0.0)",
            javax.transaction*;version="[1.1.0,2.0.0)",
            *</aries.osgi.import>
    <aries.osgi.include.resource>{maven-resources},
            javax/resource/spi/XATerminator.class=target/classes/javax/resource/spi/XATerminator.class</aries.osgi.include.resource>
    <aries.osgi.private.pkg>org.objectweb.howl.log*,
            org.apache.aries.transaction</aries.osgi.private.pkg>
    <aries.osgi.export>org.apache.geronimo.transaction*;version="${geronimo-transaction-version}",
            javax.transaction*;version="1.1.0"</aries.osgi.export>
    <aries.osgi.export.service>javax.transaction.TransactionManager,
            javax.transaction.TransactionSynchronizationRegistry,
            javax.transaction.UserTransaction,
            org.apache.geronimo.transaction.manager.RecoverableTransactionManager</aries.osgi.export.service>
  </properties>
</project>

