| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed 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</groupId> |
| <artifactId>apache</artifactId> |
| <version>23</version> |
| </parent> |
| <groupId>org.apache.hive</groupId> |
| <artifactId>hive-standalone-metastore</artifactId> |
| <version>4.0.0-SNAPSHOT</version> |
| <packaging>pom</packaging> |
| <name>Hive Standalone Metastore</name> |
| |
| <modules> |
| <module>metastore-common</module> |
| <module>metastore-server</module> |
| <module>metastore-tools</module> |
| </modules> |
| |
| <properties> |
| <hive.version.shortname>4.0.0</hive.version.shortname> |
| <standalone.metastore.path.to.root>.</standalone.metastore.path.to.root> |
| |
| <!-- Build properties --> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| <maven.compiler.source>1.8</maven.compiler.source> |
| <maven.compiler.target>1.8</maven.compiler.target> |
| <maven.compiler.useIncrementalCompilation>false</maven.compiler.useIncrementalCompilation> |
| <maven.repo.local>${settings.localRepository}</maven.repo.local> |
| <maven.exec.plugin.version>1.6.0</maven.exec.plugin.version> |
| <checkstyle.conf.dir>${basedir}/${standalone.metastore.path.to.root}/checkstyle</checkstyle.conf.dir> |
| |
| <!-- Test Properties --> |
| <log4j.conf.dir>${project.basedir}/src/test/resources</log4j.conf.dir> |
| <test.tmp.dir>${project.build.directory}/tmp</test.tmp.dir> |
| <test.warehouse.dir>${project.build.directory}/warehouse</test.warehouse.dir> |
| <test.warehouse.external.dir>${project.build.directory}/external</test.warehouse.external.dir> |
| <test.warehouse.scheme>file://</test.warehouse.scheme> |
| <test.forkcount>1</test.forkcount> |
| <skipITests>true</skipITests> |
| <itest.jdbc.jars>set-this-to-colon-separated-full-path-list-of-jars-to-run-integration-tests |
| </itest.jdbc.jars> |
| <test.groups>org.apache.hadoop.hive.metastore.annotation.MetastoreUnitTest</test.groups> |
| |
| <!-- Plugin versions --> |
| <ant.contrib.version>1.0b3</ant.contrib.version> |
| <maven.checkstyle.plugin.version>2.17</maven.checkstyle.plugin.version> |
| <maven.surefire.plugin.version>3.0.0-M4</maven.surefire.plugin.version> |
| |
| <!-- Dependency versions --> |
| <antlr.version>3.5.2</antlr.version> |
| <apache-directory-server.version>1.5.7</apache-directory-server.version> |
| <commons-lang3.version>3.9</commons-lang3.version> |
| <commons-logging.version>1.1.3</commons-logging.version> |
| <commons-dbcp2.version>2.7.0</commons-dbcp2.version> |
| <datanucleus-api-jdo.version>5.2.2</datanucleus-api-jdo.version> |
| <datanucleus-core.version>5.2.2</datanucleus-core.version> |
| <datanucleus-jdo.version>3.2.0-m13</datanucleus-jdo.version> |
| <datanucleus-rdbms.version>5.2.2</datanucleus-rdbms.version> |
| <derby.version>10.14.1.0</derby.version> |
| <postgres.version>42.2.14</postgres.version> |
| <dropwizard-metrics-hadoop-metrics2-reporter.version>0.1.2 |
| </dropwizard-metrics-hadoop-metrics2-reporter.version> |
| <dropwizard.version>3.1.0</dropwizard.version> |
| <guava.version>19.0</guava.version> |
| <hadoop.version>3.1.0</hadoop.version> |
| <hikaricp.version>2.6.1</hikaricp.version> |
| <jackson.version>2.12.0</jackson.version> |
| <javolution.version>5.5.1</javolution.version> |
| <junit.version>4.13</junit.version> |
| <junit.jupiter.version>5.6.2</junit.jupiter.version> |
| <junit.vintage.version>5.6.2</junit.vintage.version> |
| <libfb303.version>0.9.3</libfb303.version> |
| <libthrift.version>0.13.0</libthrift.version> |
| <log4j2.version>2.13.2</log4j2.version> |
| <mockito-core.version>3.3.3</mockito-core.version> |
| <orc.version>1.6.8</orc.version> |
| <!-- com.google repo will be used except on Aarch64 platform. --> |
| <protobuf.group>com.google.protobuf</protobuf.group> |
| <protobuf.version>2.6.1</protobuf.version> |
| <protobuf-exc.version>2.6.1</protobuf-exc.version> |
| <sqlline.version>1.9.0</sqlline.version> |
| <jline.version>2.14.6</jline.version> |
| <ST4.version>4.0.4</ST4.version> |
| <storage-api.version>2.8.1</storage-api.version> |
| <beanutils.version>1.9.4</beanutils.version> |
| <hamcrest.version>1.3</hamcrest.version> |
| <curator.version>4.2.0</curator.version> |
| <zookeeper.version>3.5.5</zookeeper.version> |
| <cron-utils.version>9.1.3</cron-utils.version> |
| <spotbugs.version>4.0.3</spotbugs.version> |
| <caffeine.version>2.8.4</caffeine.version> |
| <slf4j.version>1.7.30</slf4j.version> |
| |
| <!-- Thrift properties --> |
| <thrift.home>you-must-set-this-to-run-thrift</thrift.home> |
| <thrift.gen.dir>${basedir}/src/gen/thrift</thrift.gen.dir> |
| <thrift.args>-I ${thrift.home} --gen java:beans,generated_annotations=undated --gen cpp --gen php --gen py --gen rb |
| </thrift.args> |
| |
| </properties> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.orc</groupId> |
| <artifactId>orc-core</artifactId> |
| <version>${orc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson</groupId> |
| <artifactId>jackson-bom</artifactId> |
| <version>${jackson.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.github.joshelser</groupId> |
| <artifactId>dropwizard-metrics-hadoop-metrics2-reporter</artifactId> |
| <version>${dropwizard-metrics-hadoop-metrics2-reporter.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>${guava.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| <version>${protobuf.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.zaxxer</groupId> |
| <artifactId>HikariCP</artifactId> |
| <version>${hikaricp.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.dropwizard.metrics</groupId> |
| <artifactId>metrics-core</artifactId> |
| <version>${dropwizard.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.dropwizard.metrics</groupId> |
| <artifactId>metrics-jvm</artifactId> |
| <version>${dropwizard.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.dropwizard.metrics</groupId> |
| <artifactId>metrics-json</artifactId> |
| <version>${dropwizard.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>javolution</groupId> |
| <artifactId>javolution</artifactId> |
| <version>${javolution.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.antlr</groupId> |
| <artifactId>antlr-runtime</artifactId> |
| <version>${antlr.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.antlr</groupId> |
| <artifactId>ST4</artifactId> |
| <version>${ST4.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <version>${commons-lang3.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derby</artifactId> |
| <version>${derby.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <version>${hadoop.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.zookeeper</groupId> |
| <artifactId>zookeeper</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.curator</groupId> |
| <artifactId>curator-test</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.curator</groupId> |
| <artifactId>curator-client</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.curator</groupId> |
| <artifactId>curator-framework</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.curator</groupId> |
| <artifactId>curator-recipes</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-distcp</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs</artifactId> |
| <version>${hadoop.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs-client</artifactId> |
| <version>${hadoop.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-mapreduce-client-core</artifactId> |
| <version>${hadoop.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hive</groupId> |
| <artifactId>hive-storage-api</artifactId> |
| <version>${storage-api.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-dbcp2</artifactId> |
| <version>${commons-dbcp2.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <version>${log4j2.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-1.2-api</artifactId> |
| <version>${log4j2.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libfb303</artifactId> |
| <version>${libfb303.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| <version>${libthrift.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.datanucleus</groupId> |
| <artifactId>datanucleus-api-jdo</artifactId> |
| <version>${datanucleus-api-jdo.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.datanucleus</groupId> |
| <artifactId>datanucleus-core</artifactId> |
| <version>${datanucleus-core.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.datanucleus</groupId> |
| <artifactId>datanucleus-rdbms</artifactId> |
| <version>${datanucleus-rdbms.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.datanucleus</groupId> |
| <artifactId>javax.jdo</artifactId> |
| <version>${datanucleus-jdo.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.skyscreamer</groupId> |
| <artifactId>jsonassert</artifactId> |
| <version>1.4.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>sqlline</groupId> |
| <artifactId>sqlline</artifactId> |
| <version>${sqlline.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>jline</groupId> |
| <artifactId>jline</artifactId> |
| <version>${jline.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| <version>${commons-logging.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.cronutils</groupId> |
| <artifactId>cron-utils</artifactId> |
| <version>${cron-utils.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.github.ben-manes.caffeine</groupId> |
| <artifactId>caffeine</artifactId> |
| <version>${caffeine.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>${slf4j.version}</version> |
| </dependency> |
| |
| <!-- test scope dependencies --> |
| |
| <dependency> |
| <groupId>com.microsoft.sqlserver</groupId> |
| <artifactId>mssql-jdbc</artifactId> |
| <version>6.2.1.jre8</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-engine</artifactId> |
| <version>${junit.jupiter.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.vintage</groupId> |
| <artifactId>junit-vintage-engine</artifactId> |
| <version>${junit.vintage.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.directory.server</groupId> |
| <artifactId>apacheds-server-integ</artifactId> |
| <version>${apache-directory-server.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.directory.server</groupId> |
| <artifactId>apacheds-test-framework</artifactId> |
| <version>${apache-directory-server.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>${mockito-core.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.postgresql</groupId> |
| <artifactId>postgresql</artifactId> |
| <version>${postgres.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-all --> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-all</artifactId> |
| <version>${hamcrest.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.curator</groupId> |
| <artifactId>curator-test</artifactId> |
| <version>${curator.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-simple</artifactId> |
| <version>${slf4j.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>*.patch</exclude> |
| <exclude>binary-package-licenses/**</exclude> |
| <exclude>DEV-README</exclude> |
| <exclude>**/src/main/sql/**</exclude> |
| <exclude>**/README.md</exclude> |
| <exclude>**/*.iml</exclude> |
| <exclude>**/*.txt</exclude> |
| <exclude>**/*.log</exclude> |
| <exclude>**/*.arcconfig</exclude> |
| <exclude>**/package-info.java</exclude> |
| <exclude>**/*.properties</exclude> |
| <exclude>**/*.q</exclude> |
| <exclude>**/*.q.out</exclude> |
| <exclude>**/*.xml</exclude> |
| <exclude>**/gen/**</exclude> |
| <exclude>**/patchprocess/**</exclude> |
| <exclude>**/metastore_db/**</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <failIfNoTests>false</failIfNoTests> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>${maven.checkstyle.plugin.version}</version> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>assemble</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <finalName>apache-${project.artifactId}-${project.version}</finalName> |
| <formats> |
| <format>tar.gz</format> |
| </formats> |
| <descriptors> |
| <descriptor>src/assembly/src.xml</descriptor> |
| </descriptors> |
| <tarLongFileMode>posix</tarLongFileMode> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <configuration> |
| <configLocation>${checkstyle.conf.dir}/checkstyle.xml</configLocation> |
| <propertyExpansion>config_loc=${checkstyle.conf.dir}</propertyExpansion> |
| <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <!-- use com.github.os72 on aarch64 platform --> |
| <profile> |
| <id>aarch64</id> |
| <properties> |
| <protobuf.group>com.github.os72</protobuf.group> |
| <protobuf-exc.version>2.6.1-build3</protobuf-exc.version> |
| </properties> |
| <activation> |
| <os> |
| <family>linux</family> |
| <arch>aarch64</arch> |
| </os> |
| </activation> |
| </profile> |
| <profile> |
| <id>spotbugs</id> |
| <build> |
| <plugins> |
| <!-- Execute as: com.github.spotbugs:spotbugs-maven-plugin:4.0.0:spotbugs --> |
| <plugin> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs-maven-plugin</artifactId> |
| <version>4.0.0</version> |
| <dependencies> |
| <!-- Specify the version of spotbugs --> |
| <dependency> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs</artifactId> |
| <version>${spotbugs.version}</version> |
| </dependency> |
| </dependencies> |
| <configuration> |
| <fork>true</fork> |
| <maxHeap>2048</maxHeap> |
| <jvmArgs>-Djava.awt.headless=true -Xmx2048m -Xms512m</jvmArgs> |
| <excludeFilterFile>${basedir}/${standalone.metastore.path.to.root}/spotbugs/spotbugs-exclude.xml</excludeFilterFile> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs-maven-plugin</artifactId> |
| <version>4.0.0</version> |
| <configuration> |
| <fork>true</fork> |
| <maxHeap>2048</maxHeap> |
| <jvmArgs>-Djava.awt.headless=true -Xmx2048m -Xms512m</jvmArgs> |
| <excludeFilterFile>${basedir}/${standalone.metastore.path.to.root}/spotbugs/spotbugs-exclude.xml</excludeFilterFile> |
| </configuration> |
| </plugin> |
| </plugins> |
| </reporting> |
| </profile> |
| </profiles> |
| </project> |