<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.apache.camel.karaf</groupId>
        <artifactId>camel-cxf-parent</artifactId>
        <version>4.9.0</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>camel-cxf-all</artifactId>
    <packaging>bundle</packaging>
    <name>Apache Camel :: Karaf :: Components :: CXF :: All in one</name>

    <properties>
        <camel.osgi.export>
            org.apache.camel.component.cxf*;version=${camel-version},
            org.apache.cxf*;version=${cxf-version},
        </camel.osgi.export>
        <camel.osgi.activator>org.apache.camel.component.cxf.osgi.MainActivator</camel.osgi.activator>
        <camel-osgi-camel-import>
            org.apache.camel.component.cxf.spring.*;resolution:=optional;${camel-osgi-import-camel-version},
            org.apache.camel*;${camel-osgi-import-camel-version},
        </camel-osgi-camel-import>
        <camel.osgi.import>
            com.sun.xml.messaging.saaj.soap;resolution:=optional,
            com.sun.xml.internal.messaging.saaj.soap;resolution:=optional,
            com.ctc.wstx*;resolution:=optional,
            org.codehaus.stax2*;resolution:=optional,
            com.sun.msv*;resolution:=optional,
            com.sun.tools*;resolution:=optional,
            com.sun.xml*;resolution:=optional,
            com.sun.codemodel.writer;resolution:=optional,
            org.slf4j*;resolution:=optional;version="${camel-osgi-slf4j-version}",
            net.sf.cglib*;resolution:=optional;version="${camel-osgi-cglib-version}",
            org.springframework.aop*;resolution:=optional;version="${camel-osgi-spring-version}",
            org.springframework.beans*;resolution:=optional;version="${camel-osgi-spring-version}",
            org.springframework.context*;resolution:=optional;version="${camel-osgi-spring-version}",
            org.springframework.core*;resolution:=optional;version="${camel-osgi-spring-version}",
            org.springframework.util*;resolution:=optional;version="${camel-osgi-spring-version}",
            org.springframework.web*;resolution:=optional;version="${camel-osgi-spring-version}",
            org.objectweb.asm*;resolution:=optional;version="${camel-osgi-asm-version}",
            jakarta.activation;version="${camel-osgi-jakarta-activation-version}",
            jakarta.annotation;version="${camel-osgi-jakarta-annotation2-version}",
            jakarta.xml.ws*;version="${camel-osgi-jakarta-xml-ws-version}",
            jakarta.xml.bind*;version="${camel-osgi-jakarta-bind-version}",
            jakarta.validation*;resolution:=optional;version="${camel-osgi-jakarta-validation-version}",
            jakarta.jws*;version="${camel-osgi-jakarta-jws-version}",
            jakarta.ws.rs*;version="${camel-osgi-jakarta-ws-rs-version}",
            jakarta.xml.soap*;version="${camel-osgi-saaj-version}",
            jakarta.servlet*;version="${camel-osgi-jakarta-servlet-version}",
            org.glassfish.jaxb.runtime.v2;version="${camel-osgi-jakarta-bind-version}",
            javax.cache*;resolution:=optional,
            org.apache.cxf.tools*;resolution:=optional,
            org.apache.xml.resolver*;resolution:=optional,
            !sun.misc,
            org.osgi.util*,
            org.osgi.service*,
            org.osgi.framework*,
            org.xml.sax,
            javax.xml*,
            javax.management*,
            javax.crypto*,
            javax.wsdl*,
            javax.net*,
            javax.security*,
            org.w3c*,
            org.apache.ws*,
            org.apache.neethi*,
            org.glassfish.hk2.osgiresourcelocator
        </camel.osgi.import>
        <camel.osgi.dynamicimport.pkg>
            org.apache.cxf.bus,org.apache.cxf.*,com.ctc.wstx.*
        </camel.osgi.dynamicimport.pkg>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-cxf-common</artifactId>
            <version>${camel-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.camel</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-core</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-cxf-rest</artifactId>
            <version>${camel-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.camel</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-bindings-soap</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-databinding-jaxb</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-features-logging</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-jaxrs</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-jaxws</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-simple</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-client</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-transports-http</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-ws-addr</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-ws-policy</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-wsdl</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-bindings-xml</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-security</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-management</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-extension-providers</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-extension-search</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-json-basic</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-service-description</artifactId>
            <version>${cxf-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-cxf-soap</artifactId>
            <version>${camel-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.camel</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-cxf-transport</artifactId>
            <version>${camel-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.camel</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>osgi.core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>osgi.cmpn</artifactId>
            <scope>provided</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>jakarta.xml.ws</groupId>
            <artifactId>jakarta.xml.ws-api</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <artifactSet>
                                <includes>
                                    <include>org.apache.camel:camel-cxf-common</include>
                                    <include>org.apache.camel:camel-cxf-rest</include>
                                    <include>org.apache.cxf:cxf-core</include>
                                    <include>org.apache.cxf:cxf-rt-bindings-soap</include>
                                    <include>org.apache.cxf:cxf-rt-bindings-xml</include>
                                    <include>org.apache.cxf:cxf-rt-databinding-jaxb</include>
                                    <include>org.apache.cxf:cxf-rt-features-logging</include>
                                    <include>org.apache.cxf:cxf-rt-frontend-jaxrs</include>
                                    <include>org.apache.cxf:cxf-rt-frontend-jaxws</include>
                                    <include>org.apache.cxf:cxf-rt-frontend-simple</include>
                                    <include>org.apache.cxf:cxf-rt-transports-http</include>
                                    <include>org.apache.cxf:cxf-rt-cxf-rt-security</include>
                                    <include>org.apache.cxf:cxf-rt-cxf-rt-rs-client</include>
                                    <include>org.apache.cxf:cxf-rt-management</include>
                                    <include>org.apache.cxf:cxf-rt-rs-extension-providers</include>
                                    <include>org.apache.cxf:cxf-rt-rs-extension-search</include>
                                    <include>org.apache.cxf:cxf-rt-rs-json-basic</include>
                                    <include>org.apache.cxf:cxf-rt-rs-service-description</include>
                                    <include>org.apache.cxf:cxf-rt-ws-addr</include>
                                    <include>org.apache.cxf:cxf-rt-ws-policy</include>
                                    <include>org.apache.cxf:cxf-rt-wsdl</include>
                                    <include>org.apache.camel:camel-cxf-soap</include>
                                    <include>org.apache.camel:camel-cxf-transport</include>
                                </includes>
                            </artifactSet>
                            <filters>
                                <filter>
                                    <artifact>*:*</artifact>
                                    <excludes>
                                        <exclude>schemas/**</exclude>
                                    </excludes>
                                </filter>
                            </filters>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>