<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>jpa</artifactId>
        <groupId>org.ops4j.pax</groupId>
        <version>0.3.0</version>
        <relativePath>..</relativePath>
    </parent>
    <groupId>org.ops4j.pax.jpa</groupId>
    <artifactId>pax-jpa</artifactId>
    <packaging>bundle</packaging>

    <name>OPS4J Pax JPA Extender</name>

    <properties>
        <bundle.symbolicName>org.ops4j.pax.jpa</bundle.symbolicName>
        <bundle.namespace>org.ops4j.pax.jpa</bundle.namespace>
    </properties>

    <dependencies>

        <dependency>
            <groupId>org.ops4j.pax.swissbox</groupId>
            <artifactId>pax-swissbox-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.ops4j.pax.swissbox</groupId>
            <artifactId>pax-swissbox-extender</artifactId>
        </dependency>
        <dependency>
            <groupId>org.ops4j.pax.swissbox</groupId>
            <artifactId>pax-swissbox-framework</artifactId>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.enterprise</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-jpa_2.0_spec</artifactId>
            <scope>provided</scope>
        </dependency>

    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>org.ops4j.pax.jpa</Bundle-SymbolicName>
                        <Service-Component>OSGI-INF/*</Service-Component>
                        <Import-Package>
                            javax.persistence.*;version=1.0,
                            org.ops4j.io;version="[1.4,2)", 
                            org.ops4j.lang;version="[1.4,2)", 
                            org.ops4j.pax.swissbox.*;version="[1.7,2)",
                            *</Import-Package>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.jvnet.jaxb2.maven2</groupId>
                <artifactId>maven-jaxb2-plugin</artifactId>
                <version>0.8.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <extension>true</extension>
                    <generatePackage>org.ops4j.pax.jpa.jaxb</generatePackage>
                    <args>
                    </args>
                    <schemaIncludes>
                        <include>xsd/persistence-2.1.xsd</include>
                    </schemaIncludes>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>