| <?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>seatunnel-connectors-v2</artifactId> |
| <groupId>org.apache.seatunnel</groupId> |
| <version>2.2.0-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>connector-hive</artifactId> |
| |
| <properties> |
| <hive.exec.version>2.3.9</hive.exec.version> |
| <connector.name>connector.hive</connector.name> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.seatunnel</groupId> |
| <artifactId>connector-file-base-hadoop</artifactId> |
| <version>${project.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-shaded-hadoop-2</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-shaded-hadoop-2</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hive</groupId> |
| <artifactId>hive-exec</artifactId> |
| <version>${hive.exec.version}</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <artifactId>log4j</artifactId> |
| <groupId>log4j</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>log4j-1.2-api</artifactId> |
| <groupId>org.apache.logging.log4j</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <groupId>org.apache.logging.log4j</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>log4j-web</artifactId> |
| <groupId>org.apache.logging.log4j</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>slf4j-log4j12</artifactId> |
| <groupId>org.slf4j</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>parquet-hadoop-bundle</artifactId> |
| <groupId>org.apache.parquet</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jdk.tools</artifactId> |
| <groupId>jdk.tools</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>pentaho-aggdesigner-algorithm</artifactId> |
| <groupId>org.pentaho</groupId> |
| </exclusion> |
| </exclusions> |
| </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> |
| <relocations> |
| <relocation> |
| <pattern>org.apache.avro</pattern> |
| <!--suppress UnresolvedMavenProperty, this property is added by submodule--> |
| <shadedPattern>${seatunnel.shade.package}.${connector.name}.org.apache.avro</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.orc</pattern> |
| <shadedPattern>${seatunnel.shade.package}.${connector.name}.org.apache.orc</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.parquet</pattern> |
| <!--suppress UnresolvedMavenProperty --> |
| <shadedPattern>${seatunnel.shade.package}.${connector.name}.org.apache.parquet</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>shaded.parquet</pattern> |
| <!--suppress UnresolvedMavenProperty --> |
| <shadedPattern>${seatunnel.shade.package}.${connector.name}.shaded.parquet</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- make sure that flatten runs after maven-shade-plugin --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>flatten-maven-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |