| <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <parent> |
| <artifactId>deps</artifactId> |
| <groupId>org.apache.tomee</groupId> |
| <version>8.0.15</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>cxf-shade</artifactId> |
| <name>TomEE :: Deps :: CXF Shade</name> |
| |
| <!-- |
| This is to make sure ApplicationComposer, EJBContainer, Arquillian can work. |
| Patching the final zip does not allow for all those use case |
| |
| Ideally, we should split this project for each patched library so we can have |
| fine grained includes in TomEE modules. |
| --> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-core</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-databinding-jaxb</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>jakarta.xml</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-frontend-jaxrs</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-frontend-jaxws</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.ow2.asm</groupId> |
| <artifactId>asm</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-management</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-rs-client</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-rs-extension-providers</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-rs-security-cors</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-rs-security-oauth2</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-rs-service-description</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-rs-sse</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-transports-http</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-ws-security</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <!-- Exclude some weird transient dependency to jaxb-runtime from ehcache --> |
| <exclusion> |
| <groupId>org.glassfish.jaxb</groupId> |
| <artifactId>jaxb-runtime</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-wsdl</artifactId> |
| <version>${version.cxf}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.jws</groupId> |
| <artifactId>jakarta.jws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jakarta.xml.ws</groupId> |
| <artifactId>jakarta.xml.ws-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- add transitive dependencies so including this is equivalent to including regular deps --> |
| <dependency> |
| <groupId>org.apache.ws.xmlschema</groupId> |
| <artifactId>xmlschema-core</artifactId> |
| <version>2.2.5</version> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.woodstox</groupId> |
| <artifactId>woodstox-core</artifactId> |
| <version>6.4.0</version> |
| </dependency> |
| <dependency> |
| <groupId>wsdl4j</groupId> |
| <artifactId>wsdl4j</artifactId> |
| <version>1.6.3</version> |
| </dependency> |
| <dependency> |
| <groupId>org.reactivestreams</groupId> |
| <artifactId>reactive-streams</artifactId> |
| <version>1.0.3</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.neethi</groupId> |
| <artifactId>neethi</artifactId> |
| <version>3.0.3</version> |
| </dependency> |
| |
| <!-- is this required --> |
| <dependency> |
| <groupId>com.sun.xml.messaging.saaj</groupId> |
| <artifactId>saaj-impl</artifactId> |
| <version>1.5.3</version> |
| <exclusions> |
| <exclusion> |
| <groupId>jakarta.xml.soap</groupId> |
| <artifactId>jakarta.xml.soap-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>3.1.2</version> |
| <executions> |
| <execution> |
| <id>copy-dependencies-for-classpath</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/patch-classpath</outputDirectory> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>false</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-dependencies-for-patching</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>false</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| <excludeTransitive>true</excludeTransitive> <!-- we just want to patch and shade CXF --> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>3.2.4</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createSourcesJar>true</createSourcesJar> |
| <useBaseVersion>true</useBaseVersion> |
| <createDependencyReducedPom>false</createDependencyReducedPom> |
| <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| <artifactSet> |
| <includes> |
| <include>org.apache.cxf:*</include> <!-- only CXF to make sure we don't add other things --> |
| </includes> |
| </artifactSet> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| <resource>META-INF/spring.handlers</resource> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| <resource>META-INF/spring.schemas</resource> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| <resource>META-INF/blueprint.schemas</resource> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| <resource>META-INF/cxf/bus-extensions.txt</resource> |
| </transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.tomee.patch</groupId> |
| <artifactId>tomee-patch-plugin</artifactId> |
| <configuration> |
| <select>cxf-shade-.*\.jar</select> |
| <!-- skip jakarta.* transformation, we only want to patch some classes --> |
| <skipTransform>true</skipTransform> |
| <transformSources>false</transformSources> |
| <source>1.8</source> |
| <target>1.8</target> |
| <dependencies> |
| <dependency>${project.groupId}:javaee-api:jar:${version.javaee-api}</dependency> |
| |
| <dependency>org.apache.aries.blueprint:blueprint-parser:jar:1.6.0</dependency> |
| <dependency>org.apache.aries.blueprint:org.apache.aries.blueprint.api:jar:1.0.1</dependency> |
| <dependency>org.apache.aries.blueprint:org.apache.aries.blueprint.core:jar:1.10.2</dependency> |
| <dependency>org.apache.tomcat:tomcat-servlet-api:jar:10.0.4</dependency> |
| <dependency>org.osgi:org.osgi.core:jar:6.0.0</dependency> |
| <dependency>org.osgi:osgi.cmpn:jar:6.0.0</dependency> |
| <dependency>org.ow2.asm:asm:jar:9.1</dependency> |
| <dependency>org.springframework:spring-aop:jar:5.3.6</dependency> |
| <dependency>org.springframework:spring-beans:jar:5.3.6</dependency> |
| <dependency>org.springframework:spring-context:jar:5.3.6</dependency> |
| <dependency>org.springframework:spring-core:jar:5.3.6</dependency> |
| <dependency>org.springframework:spring-webmvc:jar:5.3.6</dependency> |
| </dependencies> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <phase>package</phase> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| </build> |
| </project> |