<?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>xbean</artifactId>
    <groupId>org.apache.xbean</groupId>
    <version>3.6</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>xbean-finder-shaded</artifactId>
  <name>Apache XBean :: Finder shaded (repackaged)</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <relocation>
                  <pattern>org.objectweb.asm</pattern>
                  <shadedPattern>org.apache.xbean.asm</shadedPattern>
                </relocation>
              </relocations>
              <artifactSet>
                <excludes>
                  <exclude>org.apache.xbean:xbean-asm-shaded</exclude>
                </excludes>
              </artifactSet>
              <transformers>
                <transformer>
                  <manifestEntries>
                    <Bundle-Name>${pom.name}</Bundle-Name>
                    <Bundle-Vendor>${organization.name}</Bundle-Vendor>
                    <Bundle-Version>${version}</Bundle-Version>
                    <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
                    <Bundle-License>${license.url}</Bundle-License>
                    <Bundle-Description>${description}</Bundle-Description>
                    <Bundle-DocURL>${project.url}</Bundle-DocURL>
                    <Export-Package>${xbean.osgi.export}</Export-Package>
                    <Import-Package>${xbean.osgi.import}</Import-Package>
                    <Bundle-SymbolicName>org.apache.xbean.finder-shaded</Bundle-SymbolicName>
                  </manifestEntries>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <properties>
    <xbean.osgi.import>org.apache.xbean.finder;version=${pom.version},org.apache.xbean.asm;version=3.1,org.apache.xbean.asm.commons;version=3.1</xbean.osgi.import>
    <xbean.osgi.export>org.apache.xbean.finder;version=${pom.version}</xbean.osgi.export>
  </properties>
</project>

