<?xml version="1.0"?>
<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.nuxeo.runtime</groupId>
    <artifactId>nuxeo-runtime-parent</artifactId>
    <version>5.4.1-HF08</version>
  </parent>

  <groupId>org.nuxeo.runtime</groupId>
  <artifactId>nuxeo-runtime</artifactId>
  <name>Nuxeo Runtime</name>

  <description>Nuxeo Runtime: The Nuxeo Runtime.</description>

  <dependencies>
    <dependency>
      <groupId>org.nuxeo.common</groupId>
      <artifactId>nuxeo-common</artifactId>
    </dependency>

    <dependency>
      <groupId>javax.transaction</groupId>
      <artifactId>jta</artifactId>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>osgi-core</artifactId>
    </dependency>
    <dependency>
      <groupId>jboss</groupId>
      <artifactId>jboss-remoting</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>jboss</groupId>
      <artifactId>jboss-common</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>commons-jexl</groupId>
      <artifactId>commons-jexl</artifactId>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
    </dependency>

    <dependency>
      <groupId>xerces</groupId>
      <artifactId>xercesImpl</artifactId>
    </dependency>

    <dependency>
      <groupId>xml-apis</groupId>
      <artifactId>xml-apis</artifactId>
      <scope>test</scope>
    </dependency>


  </dependencies>

  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
  </build>

  <profiles>
    <profile>
      <id>bundlor</id>
      <build>
	<plugins>
	  <plugin>
	    <groupId>com.springsource.bundlor</groupId>
	    <artifactId>com.springsource.bundlor.maven</artifactId>
	    <version>1.0.0.RELEASE</version>
	    <executions>
              <execution>
		<id>bundlor</id>
		<goals>
		  <goal>bundlor</goal>
		</goals>
              </execution>
	    </executions>
	    <configuration>
	      <manifestTemplate>
Bundle-ManifestVersion: 2
Bundle-Name: ${project.name}
Bundle-Version: ${bundle.version}
Export-Template:
 org.nuxeo.*;version="${bundle.version}"
Import-Template: 
 javax.tranaction.*;version=1.1,
 javax.resource.*.*;version=2.0,
 org.nuxeo.*;version="${bundle.version}"
Import-Package: javax.transaction;version=1.1
              </manifestTemplate>
	      <manifestTemplatePath>${basedir}/src/main/resources/META-INF/MANIFEST.MF</manifestTemplatePath>
	      <outputPath>${basedir}</outputPath>
	    </configuration>
	  </plugin>
	</plugins>
      </build>
    </profile>
</profiles>
</project>
