<?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>keycloak-examples-fuse-parent</artifactId>
        <groupId>org.keycloak</groupId>
        <version>1.8.0.CR1</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.keycloak.example.demo</groupId>
    <artifactId>cxf-jaxws-example</artifactId>
    <packaging>bundle</packaging>
    <name>CXF JAXWS Example - Secured in Karaf/Fuse</name>
    <description/>

    <properties>
        <cxf.version>3.0.4</cxf.version>
        <keycloak.osgi.export>
        </keycloak.osgi.export>
        <keycloak.osgi.import>
            javax.jws;resolution:=optional,
            javax.wsdl,
            javax.xml.bind,
            javax.xml.bind.annotation,
            javax.xml.namespace,
            javax.xml.ws,
            META-INF.cxf;version="[2.7,3.2)",
            META-INF.cxf.osgi;version="[2.7,3.2)";resolution:=optional,
            org.apache.cxf.bus;version="[2.7,3.2)",
            org.apache.cxf.bus.spring;version="[2.7,3.2)",
            org.apache.cxf.bus.resource;version="[2.7,3.2)",
            org.apache.cxf.transport.http;version="[2.7,3.2)",
            org.apache.cxf.*;version="[2.7,3.2)",
            org.springframework.beans.factory.config,
            *;resolution:=optional
        </keycloak.osgi.import>
        <keycloak.osgi.private>
            org.keycloak.example.ws.*
        </keycloak.osgi.private>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
            <version>1.1.2</version>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-jaxws_2.2_spec</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.2</version>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-jaxws</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-transports-http</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-transports-http-jetty</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <dependency>
            <groupId>com.github.relaxng</groupId>
            <artifactId>relaxngDatatype</artifactId>
        </dependency>
    </dependencies>

    <build>
        <defaultGoal>install</defaultGoal>

        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-Name>${project.name}</Bundle-Name>
                        <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
                        <Import-Package>${keycloak.osgi.import}</Import-Package>
                        <Private-Package>${keycloak.osgi.private}</Private-Package>
                        <Export-Package>${keycloak.osgi.export}</Export-Package>
                    </instructions>
                </configuration>
            </plugin>

        </plugins>
    </build>
</project>
