<?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>org.apache.karaf.demos.deployer</artifactId>
    <groupId>org.apache.karaf.demos</groupId>
    <version>2.4.3</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.karaf.demos.deployer.wrap</groupId>
  <artifactId>osgi.commons-lang</artifactId>
  <packaging>bundle</packaging>
  <name>Apache Karaf :: Demos :: Deployer :: Wrap Bundle osgi.commons-lang</name>
  <description>This OSGi bundle simply wraps commons-lang-2.4.jar artifact.</description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <excludes>
                  <exclude>**</exclude>
                </excludes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>commons-lang:commons-lang</artifact>
                  <excludes>
                    <exclude>**</exclude>
                  </excludes>
                </filter>
              </filters>
              <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
              <createDependencyReducedPom>true</createDependencyReducedPom>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.3.7</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>manual</Bundle-SymbolicName>
            <Export-Package>*;-split-package:=merge-first</Export-Package>
            <Import-Package />
            <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
            <_removeheaders>Ignore-Package,Include-Resource,Private-Package,Embed-Dependency</_removeheaders>
          </instructions>
          <unpackBundle>true</unpackBundle>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

