| <?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"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.apache.paimon</groupId> | |
| <artifactId>paimon-parent</artifactId> | |
| <version>2.2-SNAPSHOT</version> | |
| </parent> | |
| <artifactId>paimon-api</artifactId> | |
| <name>Paimon : API</name> | |
| <dependencies> | |
| <!-- Paimon Shade dependencies --> | |
| <dependency> | |
| <groupId>org.apache.paimon</groupId> | |
| <artifactId>paimon-shade-jackson-2</artifactId> | |
| <version>${paimon.shade.jackson.version}-${paimon.shade.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.paimon</groupId> | |
| <artifactId>paimon-shade-guava-30</artifactId> | |
| <version>${paimon.shade.guava.version}-${paimon.shade.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.paimon</groupId> | |
| <artifactId>paimon-shade-caffeine-2</artifactId> | |
| <version>${paimon.shade.caffeine.version}-${paimon.shade.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.httpcomponents.core5</groupId> | |
| <artifactId>httpcore5</artifactId> | |
| <version>${apache.hc.core.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.httpcomponents.client5</groupId> | |
| <artifactId>httpclient5</artifactId> | |
| <version>${apache.hc.client.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.fasterxml.jackson.core</groupId> | |
| <artifactId>jackson-databind</artifactId> | |
| <version>${paimon.shade.jackson.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>templating-maven-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>filter-sources</id> | |
| <goals> | |
| <goal>filter-sources</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>test-jar</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-shade-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>shade-paimon</id> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>shade</goal> | |
| </goals> | |
| <configuration> | |
| <artifactSet> | |
| <includes combine.children="append"> | |
| <!-- Paimon Shade --> | |
| <include>org.apache.paimon:paimon-shade-jackson-2</include> | |
| <include>org.apache.paimon:paimon-shade-guava-30</include> | |
| <include>org.apache.paimon:paimon-shade-caffeine-2</include> | |
| <!-- apache httpcomponents 5 --> | |
| <include>org.apache.httpcomponents.core5:httpcore5</include> | |
| <include>org.apache.httpcomponents.core5:httpcore5-h2</include> | |
| <include>org.apache.httpcomponents.client5:httpclient5</include> | |
| </includes> | |
| </artifactSet> | |
| <relocations> | |
| <relocation> | |
| <pattern>org.apache.hc</pattern> | |
| <shadedPattern>org.apache.paimon.shade.hc</shadedPattern> | |
| </relocation> | |
| </relocations> | |
| <filters> | |
| <!-- Another copy of the Apache license, which we don't need. --> | |
| <filter> | |
| <artifact>*</artifact> | |
| <excludes> | |
| <exclude>META-INF/LICENSE.txt</exclude> | |
| </excludes> | |
| </filter> | |
| </filters> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |