<?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 - JAXB</name>
  <description>A JBossOSGi provided JAXB bundle</description>
  
  <groupId>org.jboss.osgi.bundles</groupId>
  <artifactId>jboss-osgi-jaxb</artifactId>
  <packaging>bundle</packaging>

  <version>2.1.10</version>

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

  <properties>
    <version.xml.bind>2.1.10</version.xml.bind>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.jboss.osgi</groupId>
      <artifactId>jboss-osgi-spi</artifactId>
    </dependency>
    
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-impl</artifactId>
      <version>2.1.10</version>
    </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>
    
    <!-- Bundles -->
    <dependency>
      <groupId>org.jboss.osgi.bundles</groupId>
      <artifactId>jboss-osgi-common</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.jaxb.internal.JAXBServiceActivator</Bundle-Activator>
            <Private-Package>
              org.jboss.osgi.jaxb.internal
            </Private-Package>
            <Import-Package>
              <!-- system -->
              javax.imageio*, 
              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.jboss.osgi.spi.service;version=1.0, 
              org.osgi.framework, 
              org.osgi.service.log,
              
              <!-- ignore -->
              !com.sun.xml.fastinfoset.*, 
              !org.jvnet.*,
            </Import-Package>
            <Embed-Transitive>true</Embed-Transitive>
            <Embed-Dependency>
              jaxb-impl;inline=false,
              jaxb-api;inline=false,
              stax-api;inline=false,
              activation;inline=false,
            </Embed-Dependency>
            <_exportcontents>
              javax.activation;version=1.1,
              javax.xml.bind*;version=2.1,
              javax.xml.stream*;version=1.0,
            </_exportcontents>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
