<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>
    <artifactId>boxspring-osgi-extender-bundle</artifactId>
    <packaging>bundle</packaging>
    <name>BoxSpring OSGI Extender Bundle</name>
    <description>Replacement for SpringDM Extender package. Listens for bundles and creates BoxSpring contexts using the embedded configuration.</description>
    <parent>
        <artifactId>boxspring-osgi</artifactId>
        <groupId>com.mtvnet.boxspring.osgi</groupId>
        <version>1.0.0-beta-4</version>
    </parent>
    <properties>
        <bundle.symbolic.name.postfix>extender-bundle</bundle.symbolic.name.postfix>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <configuration>
                    <instructions>
                        <Import-Package>org.springframework.osgi.extensions.annotation;version="1.2",*</Import-Package>
                        <Export-Package>org.springframework.osgi.extender*;version="1.2.0",com.mtvnet.boxspring.osgi.extender</Export-Package>
                        <Embed-Dependency>org.springframework.osgi.extender;inline=true,boxspring-osgi-extender-fragment;inline=true</Embed-Dependency>
                        <Bundle-Activator>org.springframework.osgi.extender.internal.activator.ContextLoaderListener</Bundle-Activator>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.springframework.osgi</groupId>
            <artifactId>org.springframework.osgi.extender</artifactId>
            <version>${spring.osgi.maven.artifact.version}</version>
            <exclusions>
                <exclusion>
                    <artifactId>org.springframework.beans</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org.springframework.core</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org.springframework.context</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org.springframework.aop</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.mtvnet.boxspring.osgi</groupId>
            <artifactId>boxspring-osgi-extender-fragment</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>
</project>