This is an automated email from the ASF dual-hosted git repository.
dkuzmenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new ade51d810b3 HIVE-29062: Add standalone module for packaging the
Metastore (#5923)
ade51d810b3 is described below
commit ade51d810b383dd68874ecaa275c3a6cc9157884
Author: dengzh <[email protected]>
AuthorDate: Sun Jul 6 02:36:49 2025 +0800
HIVE-29062: Add standalone module for packaging the Metastore (#5923)
---
.gitignore | 1 +
packaging/src/docker/Dockerfile | 6 +-
packaging/src/docker/build.sh | 4 +-
packaging/src/main/assembly/src.xml | 3 +
standalone-metastore/metastore-server/pom.xml | 94 ---
.../events/TestCommitTxnEventWithDbAndWriteId.java | 0
standalone-metastore/packaging/pom.xml | 220 +++++++
.../src/assembly/bin.xml | 31 +-
.../{ => packaging}/src/assembly/src.xml | 31 +-
.../src/docker/Dockerfile | 10 +-
.../src/docker/README.md | 4 +-
.../src/docker/build.sh | 14 +-
.../src/docker/conf/metastore-log4j2.properties | 0
.../src/docker/conf/metastore-site.xml | 0
.../src/docker/docker-compose.yml | 0
.../src/docker/entrypoint.sh | 0
.../packaging/src/license/artifact-filters.txt | 5 +
.../packaging/src/license/licenses.xml | 702 +++++++++++++++++++++
standalone-metastore/pom.xml | 24 +-
19 files changed, 996 insertions(+), 153 deletions(-)
diff --git a/.gitignore b/.gitignore
index 68cf33aff8f..ab29ea055a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,3 +27,4 @@ kafka-handler/src/test/gen
dependency-reduced-pom.xml
**/.mvn/.develocity*
packaging/cache
+standalone-metastore/packaging/cache
\ No newline at end of file
diff --git a/packaging/src/docker/Dockerfile b/packaging/src/docker/Dockerfile
index 9b83987cc31..fc39ac70d76 100644
--- a/packaging/src/docker/Dockerfile
+++ b/packaging/src/docker/Dockerfile
@@ -26,9 +26,9 @@ ARG HADOOP_VERSION
ARG HIVE_VERSION
ARG TEZ_VERSION
ONBUILD RUN apt-get update && apt-get -y install wget
-ONBUILD RUN wget
https://archive.apache.org/dist/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz
&& \
+ONBUILD RUN wget
https://downloads.apache.org/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz
&& \
wget
https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz
&& \
- wget
https://archive.apache.org/dist/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz
+ wget
https://downloads.apache.org/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz
ONBUILD RUN mv /apache-tez-$TEZ_VERSION-bin.tar.gz /opt && \
mv hadoop-$HADOOP_VERSION.tar.gz /opt && \
mv apache-hive-$HIVE_VERSION-bin.tar.gz /opt
@@ -38,7 +38,7 @@ ARG HADOOP_VERSION
ARG HIVE_VERSION
ARG TEZ_VERSION
ONBUILD RUN apt-get update && apt-get -y install wget
-ONBUILD RUN wget
https://archive.apache.org/dist/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz
&& \
+ONBUILD RUN wget
https://downloads.apache.org/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz
&& \
wget
https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz
ONBUILD COPY ./apache-hive-$HIVE_VERSION-bin.tar.gz /opt
ONBUILD RUN mv /apache-tez-$TEZ_VERSION-bin.tar.gz /opt && \
diff --git a/packaging/src/docker/build.sh b/packaging/src/docker/build.sh
index 9e932ead6df..66527e2632e 100755
--- a/packaging/src/docker/build.sh
+++ b/packaging/src/docker/build.sh
@@ -85,7 +85,7 @@ if [ ! -f "$CACHE_DIR/$HADOOP_FILE_NAME" ]; then
fi
TEZ_FILE_NAME="apache-tez-$TEZ_VERSION-bin.tar.gz"
-TEZ_URL=${TEZ_URL:-"https://archive.apache.org/dist/tez/$TEZ_VERSION/$TEZ_FILE_NAME"}
+TEZ_URL=${TEZ_URL:-"https://downloads.apache.org/tez/$TEZ_VERSION/$TEZ_FILE_NAME"}
if [ ! -f "$CACHE_DIR/$TEZ_FILE_NAME" ]; then
echo "Downloading Tez from $TEZ_URL..."
if ! curl --fail -L "$TEZ_URL" -o "$CACHE_DIR/$TEZ_FILE_NAME.tmp"; then
@@ -98,7 +98,7 @@ fi
if [ -n "$HIVE_VERSION" ]; then
HIVE_FILE_NAME="apache-hive-$HIVE_VERSION-bin.tar.gz"
if [ ! -f "$CACHE_DIR/$HIVE_FILE_NAME" ]; then
-
HIVE_URL=${HIVE_URL:-"https://archive.apache.org/dist/hive/hive-$HIVE_VERSION/$HIVE_FILE_NAME"}
+
HIVE_URL=${HIVE_URL:-"https://downloads.apache.org/hive/hive-$HIVE_VERSION/$HIVE_FILE_NAME"}
echo "Downloading Hive from $HIVE_URL..."
if ! curl --fail -L "$HIVE_URL" -o "$CACHE_DIR/$HIVE_FILE_NAME.tmp"; then
echo "Failed to download Hive, exiting..."
diff --git a/packaging/src/main/assembly/src.xml
b/packaging/src/main/assembly/src.xml
index 9cdbed13776..88ad117c197 100644
--- a/packaging/src/main/assembly/src.xml
+++ b/packaging/src/main/assembly/src.xml
@@ -41,12 +41,14 @@
<exclude>**/.project</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/thirdparty/**</exclude>
+ <exclude>packaging/cache/**</exclude>
<exclude>standalone-metastore/metastore-common/src/gen/version/**</exclude>
<exclude>standalone-metastore/metastore-server/src/gen/**</exclude>
<exclude>common/src/gen/**</exclude>
<exclude>kafka-handler/src/test/gen/**</exclude>
<exclude>conf/hive-default.xml.template</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude>
+ <exclude>standalone-metastore/packaging/cache/**</exclude>
</excludes>
<includes>
@@ -106,6 +108,7 @@
<include>standalone-metastore/metastore-server/**/*</include>
<include>standalone-metastore/metastore-tools/**/*</include>
<include>standalone-metastore/metastore-rest-catalog/**/*</include>
+ <include>standalone-metastore/packaging/**/*</include>
<include>standalone-metastore/src/assembly/src.xml</include>
<include>standalone-metastore/pom.xml</include>
<include>streaming/**/*</include>
diff --git a/standalone-metastore/metastore-server/pom.xml
b/standalone-metastore/metastore-server/pom.xml
index b43fd517e37..9a38be775f5 100644
--- a/standalone-metastore/metastore-server/pom.xml
+++ b/standalone-metastore/metastore-server/pom.xml
@@ -497,80 +497,6 @@
</plugins>
</reporting>
</profile>
- <profile>
- <id>add-extra-deps</id>
- <activation>
- <property>
- <name>allModules</name>
- <value>true</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>org.apache.hive</groupId>
- <artifactId>hive-metastore</artifactId>
- <version>${hive.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hive</groupId>
- <artifactId>hive-standalone-metastore-rest-catalog</artifactId>
- <version>${hive.version}</version>
- <exclusions>
- <exclusion>
- <groupId>org.apache.hive</groupId>
- <artifactId>hive-iceberg-catalog</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.apache.hive</groupId>
- <artifactId>hive-exec</artifactId>
- <version>${project.version}</version>
- <classifier>core</classifier>
- </dependency>
- <dependency>
- <groupId>org.apache.hive</groupId>
- <artifactId>hive-iceberg-handler</artifactId>
- <version>${project.version}</version>
- <exclusions>
- <exclusion>
- <groupId>org.apache.hive</groupId>
- <artifactId>hive-exec</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>docker</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-docker-image</id>
- <phase>install</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>bash</executable>
- <environmentVariables>
-
<SOURCE_DIR>${standalone.metastore.path.to.root}</SOURCE_DIR>
- </environmentVariables>
- <arguments>
- <argument>src/docker/build.sh</argument>
- <argument>-hadoop ${hadoop.version}</argument>
- </arguments>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
<!--
<profile>
<id>checkin</id>
@@ -701,26 +627,6 @@
</executions>
</plugin>
<!-- TODO MS-SPLIT javadoc plugin -->
- <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>
- <descriptors>
- <descriptor>src/assembly/bin.xml</descriptor>
- </descriptors>
- <tarLongFileMode>posix</tarLongFileMode>
- </configuration>
- </execution>
- </executions>
- </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
diff --git
a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/events/TestCommitTxnEventWithDbAndWriteId.java
b/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/events/TestCommitTxnEventWithDbAndWriteId.java
similarity index 100%
rename from
standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/events/TestCommitTxnEventWithDbAndWriteId.java
rename to
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/events/TestCommitTxnEventWithDbAndWriteId.java
diff --git a/standalone-metastore/packaging/pom.xml
b/standalone-metastore/packaging/pom.xml
new file mode 100644
index 00000000000..ca215633e2d
--- /dev/null
+++ b/standalone-metastore/packaging/pom.xml
@@ -0,0 +1,220 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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.hive</groupId>
+ <artifactId>hive-standalone-metastore</artifactId>
+ <version>4.2.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <artifactId>hive-metastore-packaging</artifactId>
+ <packaging>pom</packaging>
+ <name>Hive Metastore Packaging</name>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <standalone.metastore.path.to.root>..</standalone.metastore.path.to.root>
+ <maven.license.plugin.version>2.3.0</maven.license.plugin.version>
+ </properties>
+ <profiles>
+ <profile>
+ <id>dist</id>
+ <build>
+ <plugins>
+ <!-- plugins are always listed in sorted order by groupId,
artifactId -->
+ <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>${project.parent.artifactId}-${project.version}</finalName>
+ <descriptors>
+ <descriptor>src/assembly/bin.xml</descriptor>
+ <descriptor>src/assembly/src.xml</descriptor>
+ </descriptors>
+ <tarLongFileMode>posix</tarLongFileMode>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>create-bin-license</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <concat
destfile="${project.build.directory}/generated-resources/LICENSE" force="yes">
+ <fileset dir="../">
+ <include name="LICENSE"/>
+ <include name="LICENSE-binary"/>
+ </fileset>
+ </concat>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <version>${maven.license.plugin.version}</version>
+ <executions>
+ <execution>
+ <id>license-fetch</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>download-licenses</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <includeOptional>false</includeOptional>
+
<artifactFiltersUrl>${project.baseUri}/src/license/artifact-filters.txt</artifactFiltersUrl>
+
<excludeTransitiveDependencies>true</excludeTransitiveDependencies>
+ <useDefaultUrlReplacements>true</useDefaultUrlReplacements>
+ <licenseUrlReplacements>
+ <licenseUrlReplacements>
+
<regexp>https?://glassfish(.dev)?\.java\.net/.*CDDL.*</regexp>
+
<replacement>https://spdx.org/licenses/CDDL-1.1.html</replacement>
+ </licenseUrlReplacements>
+ <licenseUrlReplacement>
+ <regexp>https?://asm\.objectweb\.org/license.html</regexp>
+ <replacement>https://asm.ow2.io/license.html</replacement>
+ </licenseUrlReplacement>
+ <licenseUrlReplacement>
+ <regexp>http://(www\.)?antlr.org/license.html</regexp>
+ <replacement>http://www.antlr.org/license.html</replacement>
+ </licenseUrlReplacement>
+ </licenseUrlReplacements>
+ <licenseUrlFileNames>
+ <APACHE-2.0>
+ https?://www\.apache\.org/licenses/LICENSE-2\.0.*
+ \Qhttps://aws.amazon.com/apache2.0\E
+ \Qhttps://opensource.org/licenses/Apache-2.0\E
+ \Qhttp://www.apache.org/licenses/\E
+ </APACHE-2.0>
+ <BSD-2-CLAUSE>
+ https?://(www\.)?opensource.org/licenses/bsd-license.php
+ https?://(www\.)?opensource.org/licenses/BSD-2-Clause
+ </BSD-2-CLAUSE>
+ <BSD-3-CLAUSE>
+ https?://(www\.)?opensource.org/licenses/BSD-3-Clause
+ </BSD-3-CLAUSE>
+ <LGPL-3.0-only>
+ \Qhttp://www.fsf.org/licensing/licenses/lgpl.txt\E
+ \Qhttp://www.gnu.org/licenses/lgpl-3.0.txt\E
+ </LGPL-3.0-only>
+ <EPL-1.0>
+ \Qhttps://www.eclipse.org/org/documents/epl-v10.php\E
+ \Qhttp://www.eclipse.org/org/documents/epl-v10.php\E
+ </EPL-1.0>
+ <EPL-2.0>
+
\Qhttps://raw.githubusercontent.com/locationtech/jts/master/LICENSE_EPLv2.txt\E
+ \Qhttps://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt\E
+ </EPL-2.0>
+ <EDL-1.0>
+ \Qhttps://www.eclipse.org/org/documents/edl-v10.php\E
+ \Qhttp://www.eclipse.org/org/documents/edl-v10.php\E
+ </EDL-1.0>
+ <MIT>
+ https?://(www\.)?opensource\.org/licenses/mit(-license.php)?
+ </MIT>
+ </licenseUrlFileNames>
+ <licenseUrlFileNameSanitizers>
+ <licenseUrlFileNameSanitizer>
+ <regexp>[\s-_,]+</regexp>
+ <replacement>-</replacement>
+ </licenseUrlFileNameSanitizer>
+ </licenseUrlFileNameSanitizers>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>docker</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>bash</executable>
+ <environmentVariables>
+
<SOURCE_DIR>${standalone.metastore.path.to.root}</SOURCE_DIR>
+ </environmentVariables>
+ <arguments>
+ <argument>src/docker/build.sh</argument>
+ <argument>-hadoop ${hadoop.version}</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-metastore</artifactId>
+ <version>${hive.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-standalone-metastore-rest-catalog</artifactId>
+ <version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-iceberg-catalog</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-exec</artifactId>
+ <version>${hive.version}</version>
+ <classifier>core</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-iceberg-handler</artifactId>
+ <version>${hive.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-exec</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-standalone-metastore-common</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-standalone-metastore-server</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/standalone-metastore/metastore-server/src/assembly/bin.xml
b/standalone-metastore/packaging/src/assembly/bin.xml
similarity index 75%
rename from standalone-metastore/metastore-server/src/assembly/bin.xml
rename to standalone-metastore/packaging/src/assembly/bin.xml
index 967bc590c0c..b967e1fcf3d 100644
--- a/standalone-metastore/metastore-server/src/assembly/bin.xml
+++ b/standalone-metastore/packaging/src/assembly/bin.xml
@@ -52,7 +52,7 @@
<fileSets>
<fileSet>
- <directory>${project.basedir}</directory>
+ <directory>${project.parent.basedir}</directory>
<excludes>
<exclude>target/**</exclude>
<exclude>.classpath</exclude>
@@ -71,7 +71,7 @@
<fileSet>
<fileMode>755</fileMode>
- <directory>${project.basedir}/src/main/scripts</directory>
+
<directory>${project.parent.basedir}/metastore-server/src/main/scripts</directory>
<includes>
<include>base</include>
<include>schematool</include>
@@ -83,7 +83,7 @@
</fileSet>
<fileSet>
- <directory>${project.basedir}/src/main/sql</directory>
+
<directory>${project.parent.basedir}/metastore-server/src/main/sql</directory>
<includes>
<include>**/*</include>
</includes>
@@ -91,7 +91,7 @@
</fileSet>
<fileSet>
- <directory>${project.basedir}/src/gen/thrift/gen-php</directory>
+
<directory>${project.parent.basedir}/metastore-common/src/gen/thrift/gen-php</directory>
<includes>
<include>**/*</include>
</includes>
@@ -99,7 +99,7 @@
</fileSet>
<fileSet>
-
<directory>${project.basedir}/src/gen/thrift/gen-py/hive_metastore</directory>
+
<directory>${project.parent.basedir}/metastore-common/src/gen/thrift/gen-py/hive_metastore</directory>
<fileMode>755</fileMode>
<includes>
<include>**/*</include>
@@ -108,7 +108,7 @@
</fileSet>
<fileSet>
- <directory>${project.basedir}/src/main/resources/</directory>
+
<directory>${project.parent.basedir}/metastore-server/src/main/resources/</directory>
<fileMode>644</fileMode>
<includes>
<include>metastore-site.xml</include>
@@ -116,11 +116,28 @@
</includes>
<outputDirectory>conf</outputDirectory>
</fileSet>
+
+ <fileSet>
+ <directory>${project.build.directory}/generated-resources</directory>
+ <includes>
+ <include>/LICENSE</include>
+ <include>/licenses.xml</include>
+ </includes>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ <fileSet>
+
<directory>${project.build.directory}/generated-resources/licenses</directory>
+ <includes>
+ <include>/*</include>
+ </includes>
+ <outputDirectory>licenses</outputDirectory>
+ </fileSet>
+
</fileSets>
<files>
<file>
-
<source>${project.build.directory}/generated-sources/conf/metastore-site.xml.template</source>
+
<source>${project.parent.basedir}/metastore-server/target/generated-sources/conf/metastore-site.xml.template</source>
<outputDirectory>conf</outputDirectory>
</file>
</files>
diff --git a/standalone-metastore/src/assembly/src.xml
b/standalone-metastore/packaging/src/assembly/src.xml
similarity index 59%
rename from standalone-metastore/src/assembly/src.xml
rename to standalone-metastore/packaging/src/assembly/src.xml
index 7861f1ca869..5a6dd8a1e7e 100644
--- a/standalone-metastore/src/assembly/src.xml
+++ b/standalone-metastore/packaging/src/assembly/src.xml
@@ -28,28 +28,39 @@
<format>tar.gz</format>
</formats>
-
<baseDirectory>apache-${project.artifactId}-${project.version}-src</baseDirectory>
+ <baseDirectory>apache-hive-metastore-${project.version}-src</baseDirectory>
<fileSets>
<fileSet>
- <directory>${project.basedir}</directory>
+ <directory>${project.parent.basedir}</directory>
<includes>
<include>DEV-README</include>
- <include>README*</include>
- <include>LICENSE*</include>
- <include>NOTICE*</include>
+ <include>LICENSE</include>
+ <include>NOTICE</include>
<include>pom.xml</include>
+ <include>metastore-common/**/*</include>
+ <include>metastore-server/**/*</include>
+ <include>metastore-tools/**/*</include>
+ <include>metastore-rest-catalog/**/*</include>
+ <include>packaging/**/*</include>
+ <include>checkstyle/**/*</include>
+ <include>spotbugs/**/*</include>
</includes>
- <useDefaultExcludes>true</useDefaultExcludes>
- </fileSet>
- <fileSet>
- <directory>${project.basedir}</directory>
- <useDefaultExcludes>true</useDefaultExcludes>
<excludes>
<exclude>**/*.log</exclude>
<exclude>**/*.iml</exclude>
+ <exclude>packaging/cache/**</exclude>
<exclude>**/${project.build.directory}/**</exclude>
+ <exclude>**/dependency-reduced-pom.xml</exclude>
+ <exclude>**/target/**</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.project</exclude>
+ <exclude>**/.settings/**</exclude>
+ <exclude>**/*.jar</exclude>
+ <exclude>metastore-common/src/gen/version/**</exclude>
+ <exclude>metastore-server/src/gen/**</exclude>
</excludes>
+ <outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
</assembly>
diff --git a/standalone-metastore/metastore-server/src/docker/Dockerfile
b/standalone-metastore/packaging/src/docker/Dockerfile
similarity index 84%
rename from standalone-metastore/metastore-server/src/docker/Dockerfile
rename to standalone-metastore/packaging/src/docker/Dockerfile
index fb716e126bc..f9a6ff3576a 100644
--- a/standalone-metastore/metastore-server/src/docker/Dockerfile
+++ b/standalone-metastore/packaging/src/docker/Dockerfile
@@ -18,23 +18,23 @@ ARG BUILD_ENV
FROM ubuntu as unarchive
ONBUILD COPY hadoop-*.tar.gz /opt
-ONBUILD COPY apache-hive-standalone-metastore-server-*-bin.tar.gz /opt
+ONBUILD COPY hive-standalone-metastore-*-bin.tar.gz /opt
FROM ubuntu as archive
ARG HADOOP_VERSION
ARG HIVE_VERSION
ONBUILD RUN apt-get update && apt-get -y install wget
ONBUILD RUN wget
https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz
&& \
- wget
https://archive.apache.org/dist/hive/hive-standalone-metastore-$HIVE_VERSION/apache-hive-standalone-metastore-server-$HIVE_VERSION-bin.tar.gz
+ wget
https://downloads.apache.org/hive/hive-standalone-metastore-$HIVE_VERSION/hive-standalone-metastore-$HIVE_VERSION-bin.tar.gz
ONBUILD RUN mv hadoop-$HADOOP_VERSION.tar.gz /opt && \
- mv apache-hive-standalone-metastore-server-$HIVE_VERSION-bin.tar.gz /opt
+ mv hive-standalone-metastore-$HIVE_VERSION-bin.tar.gz /opt
FROM ubuntu as buildarchive
ARG HADOOP_VERSION
ARG HIVE_VERSION
ONBUILD RUN apt-get update && apt-get -y install wget
ONBUILD RUN wget
https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz
-ONBUILD COPY
./apache-hive-standalone-metastore-server-$HIVE_VERSION-bin.tar.gz /opt
+ONBUILD COPY ./hive-standalone-metastore-$HIVE_VERSION-bin.tar.gz /opt
ONBUILD RUN mv hadoop-$HADOOP_VERSION.tar.gz /opt
FROM ${BUILD_ENV} as env
@@ -44,7 +44,7 @@ ARG HIVE_VERSION
RUN tar -xzvf /opt/hadoop-$HADOOP_VERSION.tar.gz -C /opt/ && \
rm -rf /opt/hadoop-$HADOOP_VERSION/share/doc/* && \
- tar -xzvf
/opt/apache-hive-standalone-metastore-server-$HIVE_VERSION-bin.tar.gz -C /opt/
+ tar -xzvf /opt/hive-standalone-metastore-$HIVE_VERSION-bin.tar.gz -C /opt/
FROM eclipse-temurin:21.0.3_9-jre-ubi9-minimal AS run
diff --git a/standalone-metastore/metastore-server/src/docker/README.md
b/standalone-metastore/packaging/src/docker/README.md
similarity index 97%
rename from standalone-metastore/metastore-server/src/docker/README.md
rename to standalone-metastore/packaging/src/docker/README.md
index 3eba41bfeef..eacbdc7edea 100644
--- a/standalone-metastore/metastore-server/src/docker/README.md
+++ b/standalone-metastore/packaging/src/docker/README.md
@@ -51,7 +51,7 @@ The `build.sh` provides ways to build the image against
specified version of the
##### Build from source
```shell
-mvn clean install -DskipTests -DallModules -Pdocker
+mvn clean package -DskipTests -Pdocker
```
##### Build with specified version
There are some arguments to specify the component version:
@@ -66,7 +66,7 @@ For example, the following command uses Hive 4.0.0 and Hadoop
`hadoop.version` t
```shell
./build.sh -hive 4.0.0
```
-If the command does not specify the Hive version, it will use the local
`apache-hive-standalone-metastore-${project.version}-bin.tar.gz`(will trigger a
build if it doesn't exist),
+If the command does not specify the Hive version, it will use the local
`hive-standalone-metastore-${project.version}-bin.tar.gz`(will trigger a build
if it doesn't exist),
together with Hadoop 3.1.0 to build the image,
```shell
./build.sh -hadoop 3.1.0
diff --git a/standalone-metastore/metastore-server/src/docker/build.sh
b/standalone-metastore/packaging/src/docker/build.sh
similarity index 83%
rename from standalone-metastore/metastore-server/src/docker/build.sh
rename to standalone-metastore/packaging/src/docker/build.sh
index e0f9d4dc48d..80d50503d99 100755
--- a/standalone-metastore/metastore-server/src/docker/build.sh
+++ b/standalone-metastore/packaging/src/docker/build.sh
@@ -66,7 +66,7 @@ mkdir -p "$CACHE_DIR"
HADOOP_VERSION=${HADOOP_VERSION:-$(mvn -f "$SOURCE_DIR/pom.xml" -q
help:evaluate -Dexpression=hadoop.version -DforceStdout)}
HADOOP_FILE_NAME="hadoop-$HADOOP_VERSION.tar.gz"
-HADOOP_URL=${HADOOP_URL:-"https://downloads.apache.org/hadoop/core/hadoop-$HADOOP_VERSION/$HADOOP_FILE_NAME"}
+HADOOP_URL=${HADOOP_URL:-"https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/$HADOOP_FILE_NAME"}
if [ ! -f "$CACHE_DIR/$HADOOP_FILE_NAME" ]; then
echo "Downloading Hadoop from $HADOOP_URL..."
if ! curl --fail -L "$HADOOP_URL" -o "$CACHE_DIR/$HADOOP_FILE_NAME.tmp"; then
@@ -77,7 +77,7 @@ if [ ! -f "$CACHE_DIR/$HADOOP_FILE_NAME" ]; then
fi
if [ -n "$HIVE_VERSION" ]; then
-
HIVE_FILE_NAME="apache-hive-standalone-metastore-server-$HIVE_VERSION-bin.tar.gz"
+ HIVE_FILE_NAME="hive-standalone-metastore-$HIVE_VERSION-bin.tar.gz"
if [ ! -f "$CACHE_DIR/$HIVE_FILE_NAME" ]; then
HIVE_URL=${HIVE_URL:-"https://downloads.apache.org/hive/hive-standalone-metastore-$HIVE_VERSION/$HIVE_FILE_NAME"}
echo "Downloading Hive Metastore from $HIVE_URL..."
@@ -90,8 +90,8 @@ if [ -n "$HIVE_VERSION" ]; then
cp "$CACHE_DIR/$HIVE_FILE_NAME" "$WORK_DIR"
else
HIVE_VERSION=$(mvn -f "$SOURCE_DIR/pom.xml" -q help:evaluate
-Dexpression=project.version -DforceStdout)
-
HIVE_TAR="$SOURCE_DIR/metastore-server/target/apache-hive-standalone-metastore-server-$HIVE_VERSION-bin.tar.gz"
- if ls "$HIVE_TAR" || mvn -f "$SOURCE_DIR/metastore-server/pom.xml" clean
package -DskipTests -DallModules; then
+
HIVE_TAR="$SOURCE_DIR/packaging/target/hive-standalone-metastore-$HIVE_VERSION-bin.tar.gz"
+ if ls "$HIVE_TAR" || mvn -f "$SOURCE_DIR/pom.xml" clean package -DskipTests
-Pdist; then
cp "$HIVE_TAR" "$WORK_DIR/"
else
echo "Failed to compile Hive Metastore project, exiting..."
@@ -100,9 +100,9 @@ else
fi
cp "$CACHE_DIR/hadoop-$HADOOP_VERSION.tar.gz" "$WORK_DIR/"
-cp -R "$SOURCE_DIR/metastore-server/src/docker/conf" "$WORK_DIR/"
-cp -R "$SOURCE_DIR/metastore-server/src/docker/entrypoint.sh" "$WORK_DIR/"
-cp "$SOURCE_DIR/metastore-server/src/docker/Dockerfile" "$WORK_DIR/"
+cp -R "$SOURCE_DIR/packaging/src/docker/conf" "$WORK_DIR/"
+cp -R "$SOURCE_DIR/packaging/src/docker/entrypoint.sh" "$WORK_DIR/"
+cp "$SOURCE_DIR/packaging/src/docker/Dockerfile" "$WORK_DIR/"
docker build \
"$WORK_DIR" \
-f "$WORK_DIR/Dockerfile" \
diff --git
a/standalone-metastore/metastore-server/src/docker/conf/metastore-log4j2.properties
b/standalone-metastore/packaging/src/docker/conf/metastore-log4j2.properties
similarity index 100%
rename from
standalone-metastore/metastore-server/src/docker/conf/metastore-log4j2.properties
rename to
standalone-metastore/packaging/src/docker/conf/metastore-log4j2.properties
diff --git
a/standalone-metastore/metastore-server/src/docker/conf/metastore-site.xml
b/standalone-metastore/packaging/src/docker/conf/metastore-site.xml
similarity index 100%
rename from
standalone-metastore/metastore-server/src/docker/conf/metastore-site.xml
rename to standalone-metastore/packaging/src/docker/conf/metastore-site.xml
diff --git
a/standalone-metastore/metastore-server/src/docker/docker-compose.yml
b/standalone-metastore/packaging/src/docker/docker-compose.yml
similarity index 100%
rename from standalone-metastore/metastore-server/src/docker/docker-compose.yml
rename to standalone-metastore/packaging/src/docker/docker-compose.yml
diff --git a/standalone-metastore/metastore-server/src/docker/entrypoint.sh
b/standalone-metastore/packaging/src/docker/entrypoint.sh
similarity index 100%
rename from standalone-metastore/metastore-server/src/docker/entrypoint.sh
rename to standalone-metastore/packaging/src/docker/entrypoint.sh
diff --git a/standalone-metastore/packaging/src/license/artifact-filters.txt
b/standalone-metastore/packaging/src/license/artifact-filters.txt
new file mode 100644
index 00000000000..3de82a0bc1a
--- /dev/null
+++ b/standalone-metastore/packaging/src/license/artifact-filters.txt
@@ -0,0 +1,5 @@
+exclude gaPattern org\.apache\.hadoop:.*
+include scope compile
+include scope runtime
+exclude scope provided
+exclude scope test
diff --git a/standalone-metastore/packaging/src/license/licenses.xml
b/standalone-metastore/packaging/src/license/licenses.xml
new file mode 100644
index 00000000000..f3f631bb50a
--- /dev/null
+++ b/standalone-metastore/packaging/src/license/licenses.xml
@@ -0,0 +1,702 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ 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.
+-->
+<licenseSummary>
+ <dependencies>
+ <dependency>
+ <groupId>com.google.flatbuffers</groupId>
+ <artifactId>flatbuffers-java</artifactId>
+ <version>1.12.0</version>
+ <licenses>
+ <license>
+ <name>Apache License V2.0</name>
+
<url>https://raw.githubusercontent.com/google/flatbuffers/master/LICENSE.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey.contribs</groupId>
+ <artifactId>jersey-guice</artifactId>
+ <version>1.19</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey.contribs</groupId>
+ <artifactId>jersey-multipart</artifactId>
+ <version>1.19</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey.contribs</groupId>
+ <artifactId>wadl-resourcedoc-doclet</artifactId>
+ <version>1.4</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-client</artifactId>
+ <version>1.19</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-core</artifactId>
+ <version>1.19</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-json</artifactId>
+ <version>1.19</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-server</artifactId>
+ <version>1.19</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-servlet</artifactId>
+ <version>1.19</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ <version>2.2.3-1</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>commons-el</groupId>
+ <artifactId>commons-el</artifactId>
+ <version>1.0</version>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>/LICENSE.txt</url>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>jakarta.jms</groupId>
+ <artifactId>jakarta.jms-api</artifactId>
+ <version>2.0.2</version>
+ <licenses>
+ <license>
+ <name>Eclipse Public License v. 2.0</name>
+ <url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
+ <distribution>repo</distribution>
+ <file>eclipse-public-license-v.-2.0-epl-2.0.txt</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>javax.servlet-api</artifactId>
+ <version>3.1.0</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>javax.ws.rs</groupId>
+ <artifactId>javax.ws.rs-api</artifactId>
+ <version>2.0.1</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>2.2.11</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>net.java.dev.jna</groupId>
+ <artifactId>jna</artifactId>
+ <version>5.3.1</version>
+ <licenses>
+ <license>
+ <name>Apache License v2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.pig</groupId>
+ <artifactId>pig</artifactId>
+ <version>0.16.0</version>
+ <licenses>
+ <license>
+ <name>Apache License, Version 2.0</name>
+ <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.abego.treelayout</groupId>
+ <artifactId>org.abego.treelayout.core</artifactId>
+ <version>1.0.1</version>
+ <licenses>
+ <license>
+ <name>BSD-3-Clause</name>
+
<url>https://raw.githubusercontent.com/abego/treelayout/master/org.abego.treelayout/src/LICENSE.TXT</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.jackson</groupId>
+ <artifactId>jackson-jaxrs</artifactId>
+ <version>1.9.2</version>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.jackson</groupId>
+ <artifactId>jackson-xc</artifactId>
+ <version>1.9.2</version>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.cryptacular</groupId>
+ <artifactId>cryptacular</artifactId>
+ <version>1.2.4</version>
+ <licenses>
+ <license>
+ <name>Apache 2</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty.toolchain</groupId>
+ <artifactId>jetty-schemas</artifactId>
+ <version>3.1.2</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty.websocket</groupId>
+ <artifactId>websocket-api</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty.websocket</groupId>
+ <artifactId>websocket-client</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty.websocket</groupId>
+ <artifactId>websocket-common</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty.websocket</groupId>
+ <artifactId>websocket-server</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty.websocket</groupId>
+ <artifactId>websocket-servlet</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>apache-jsp</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jdt</groupId>
+ <artifactId>ecj</artifactId>
+ <version>3.26.0</version>
+ <licenses>
+ <license>
+ <name>Eclipse Public License v. 2.0</name>
+ <url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
+ <distribution>repo</distribution>
+ <file>eclipse-public-license-v.-2.0-epl-2.0.txt</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>apache-jstl</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-annotations</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-client</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-http</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-io</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-jaas</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-jndi</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-plus</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-rewrite</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-security</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-server</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-servlet</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-util-ajax</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-util</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-webapp</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-xml</artifactId>
+ <version>9.4.57.v20241219</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.ehcache</groupId>
+ <artifactId>ehcache</artifactId>
+ <version>3.3.1</version>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <version>3.28.0-GA</version>
+ <licenses>
+ <license>
+ <name>Apache License 2.0</name>
+ <url>http://www.apache.org/licenses/</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.jvnet.mimepull</groupId>
+ <artifactId>mimepull</artifactId>
+ <version>1.9.3</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ <distribution>repo</distribution>
+ <file>CDDL-1.1.html</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.ldaptive</groupId>
+ <artifactId>ldaptive</artifactId>
+ <version>1.0.13</version>
+ <licenses>
+ <license>
+ <name>Apache 2</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.lz4</groupId>
+ <artifactId>lz4-java</artifactId>
+ <version>1.8.0</version>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-util</artifactId>
+ <version>6.1.26</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty</artifactId>
+ <version>6.1.26</version>
+ <licenses>
+ <license>
+ <name>Apache Software License - Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jsp-api-2.1</artifactId>
+ <version>6.1.14</version>
+ <licenses>
+ <license>
+ <name>Apache License Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <file>APACHE-2.0</file>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>servlet-api-2.5</artifactId>
+ <version>6.1.14</version>
+ <licenses>
+ <license>
+ <name>CDDL 1.0</name>
+ <url>https://spdx.org/licenses/CDDL-1.1.html</url>
+ </license>
+ </licenses>
+ </dependency>
+ <dependency>
+ <groupId>oro</groupId>
+ <artifactId>oro</artifactId>
+ <version>2.0.8</version>
+ <licenses>
+ <license>
+ <name>Apache License Version 1.1</name>
+ <url>https://www.apache.org/licenses/LICENSE-1.1</url>
+ <file>APACHE-1.1</file>
+ </license>
+ </licenses>
+ </dependency>
+ </dependencies>
+</licenseSummary>
diff --git a/standalone-metastore/pom.xml b/standalone-metastore/pom.xml
index 9db6d9ac399..7cdd8f5b31f 100644
--- a/standalone-metastore/pom.xml
+++ b/standalone-metastore/pom.xml
@@ -30,6 +30,7 @@
<module>metastore-server</module>
<module>metastore-tools</module>
<module>metastore-rest-catalog</module>
+ <module>packaging</module>
</modules>
<properties>
<hive.version>4.2.0-SNAPSHOT</hive.version>
@@ -544,29 +545,6 @@
</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>