| <?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.kyuubi</groupId> |
| <artifactId>kyuubi-parent</artifactId> |
| <version>1.7.4</version> |
| </parent> |
| |
| <artifactId>kyuubi-hive-jdbc-shaded</artifactId> |
| <packaging>jar</packaging> |
| <name>Kyuubi Project Hive JDBC Shaded Client</name> |
| <url>https://kyuubi.apache.org/</url> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.kyuubi</groupId> |
| <artifactId>kyuubi-hive-jdbc</artifactId> |
| <version>${project.version}</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| <optional>true</optional> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <configuration> |
| <minimizeJar>false</minimizeJar> |
| <createSourcesJar>true</createSourcesJar> |
| <shadeSourcesContent>true</shadeSourcesContent> |
| <shadedArtifactAttached>false</shadedArtifactAttached> |
| <artifactSet> |
| <excludes> |
| <exclude>com.google.code.findbugs:jsr305</exclude> |
| </excludes> |
| </artifactSet> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| <exclude>META-INF/DEPENDENCIES</exclude> |
| <exclude>META-INF/LICENSE.txt</exclude> |
| <exclude>META-INF/NOTICE.txt</exclude> |
| <exclude>META-INF/maven/**</exclude> |
| <exclude>META-INF/native-image/**</exclude> |
| <exclude>LICENSE.txt</exclude> |
| <exclude>NOTICE.txt</exclude> |
| <exclude>mozilla/**</exclude> |
| <exclude>arrow-git.properties</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <relocations> |
| <relocation> |
| <pattern>codegen</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.codegen</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.facebook</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.com.facebook</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.google</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.com.google</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.fasterxml.jackson</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.com.fasterxml.jackson</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.netty</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.io.netty</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.arrow</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.org.apache.arrow</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.commons</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.org.apache.commons</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.curator</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.org.apache.curator</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.hive</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.org.apache.hive</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.http</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.org.apache.http</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.jute</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.org.apache.jute</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.thrift</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.org.apache.thrift</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.zookeeper</pattern> |
| <shadedPattern>${kyuubi.shade.packageName}.org.apache.zookeeper</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"></transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- |
| This is to ensure references to shaded Hive classes can be resolved in IDEs such as Intellij. |
| For reference: https://youtrack.jetbrains.com/issue/IDEA-126596 |
| --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>compile</id> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <artifacts> |
| <artifact> |
| <file>${basedir}/target/${project.artifactId}-${project.version}.jar</file> |
| <type>jar</type> |
| <classifier>optional</classifier> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>net.alchim31.maven</groupId> |
| <artifactId>scala-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-scaladocs</id> |
| <phase>none</phase> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.scalatest</groupId> |
| <artifactId>scalatest-maven-plugin</artifactId> |
| <configuration> |
| <skipTests>true</skipTests> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.scalastyle</groupId> |
| <artifactId>scalastyle-maven-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| </plugins> |
| <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory> |
| <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory> |
| </build> |
| </project> |