<?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>

  <name>JBossOSGi 3rd Party - Apache Xerces</name>
  <description>A JBossOSGi provided Apache Xerces bundle</description>
  
  <groupId>org.jboss.osgi.bundles</groupId>
  <artifactId>jboss-osgi-apache-xerces</artifactId>
  <packaging>bundle</packaging>

  <version>2.9.1</version>

  <parent>
    <groupId>org.jboss.osgi.bundles</groupId>
    <artifactId>jboss-osgi-3rdparty</artifactId>
    <version>1.0.0.Beta2</version>
  </parent>

  <properties>
    <version.apache.xerces>2.9.1</version.apache.xerces>
    <version.wutka.dtdparser>1.2.1</version.wutka.dtdparser>
    <version.xml.resolver>1.2</version.xml.resolver>
  </properties>

  <dependencies>
    <dependency>
      <groupId>apache-xerces</groupId>
      <artifactId>xml-apis</artifactId>
      <version>2.9.1</version>
    </dependency>
    <dependency>
      <groupId>apache-xerces</groupId>
      <artifactId>xercesImpl</artifactId>
      <version>2.9.1</version>
    </dependency>
    <dependency>
      <groupId>wutka-dtdparser</groupId>
      <artifactId>dtdparser121</artifactId>
      <version>1.2.1</version>
    </dependency>
    <dependency>
      <groupId>xml-resolver</groupId>
      <artifactId>xml-resolver</artifactId>
      <version>1.2</version>
    </dependency>

    <!-- Bundle Dependencies -->
    <dependency>
      <groupId>org.jboss.osgi.bundles</groupId>
      <artifactId>jboss-osgi-common</artifactId>
      <scope>provided</scope>
    </dependency>

    <!-- OSGi Dependencies -->    
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.core</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.compendium</artifactId>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>${artifactId}</Bundle-SymbolicName>
            <Bundle-Activator>org.jboss.osgi.apache.xerces.internal.XercesParserActivator</Bundle-Activator>
            <Private-Package>
              org.jboss.osgi.apache.xerces.internal
            </Private-Package>
            <Import-Package>
              javax.xml.datatype, 
              javax.xml.namespace, 
              javax.xml.parsers, 
              javax.xml.transform*, 
              javax.xml.validation, 
              org.w3c.dom*, 
              org.xml.sax*,

              <!-- import -->
              org.jboss.osgi.common.log;version=1.0,
              org.osgi.framework, 
              org.osgi.service.log,
              org.osgi.util.xml,
              
              <!-- ignore -->
              !sun.io, 
            </Import-Package>
            <Embed-Dependency>
              dtdparser121;inline=false,
              xercesImpl;inline=false,
              xml-resolver;inline=false,
            </Embed-Dependency>
            <_exportcontents>
              com.wutka.dtd;version=${version.wutka.dtdparser},
              org.apache.xerces.*;version=${version.apache.xerces},
            </_exportcontents>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
