[
https://issues.apache.org/jira/browse/HIVE-26418?focusedWorklogId=793521&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-793521
]
ASF GitHub Bot logged work on HIVE-26418:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 21/Jul/22 04:16
Start Date: 21/Jul/22 04:16
Worklog Time Spent: 10m
Work Description: kasakrisz merged PR #3462:
URL: https://github.com/apache/hive/pull/3462
Issue Time Tracking
-------------------
Worklog Id: (was: 793521)
Time Spent: 20m (was: 10m)
> Stop packaging hive-standalone-metastore-server*-tests.jar
> ----------------------------------------------------------
>
> Key: HIVE-26418
> URL: https://issues.apache.org/jira/browse/HIVE-26418
> Project: Hive
> Issue Type: Bug
> Reporter: John Sherman
> Assignee: John Sherman
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> HIVE-25989 added hive-standalone-metastore-server with the classifier of
> tests to hbase-handler/pom.xml but without the scope of test.As a result
> hive-standalone-metastore-server*-tests.jar gets packaged.
> {code:java}
> (packaging) $ find . -iname "*test*.jar"
> ./target/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/lib/hive-llap-common-4.0.0-alpha-2-SNAPSHOT-tests.jar
> ./target/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/lib/hive-testutils-4.0.0-alpha-2-SNAPSHOT.jar
> ./target/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/lib/hive-standalone-metastore-server-4.0.0-alpha-2-SNAPSHOT-tests.jar
> ./target/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/lib/opentest4j-1.2.0.jar
> {code}
> Changing the pom file to use scope test for the tests jar and to also bring
> in the non-tests jar for runtime dependency fixes the issue:
> {code:java}
> (packaging) $ find . -iname "*test*.jar"
> ./target/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/lib/hive-llap-common-4.0.0-alpha-2-SNAPSHOT-tests.jar
> ./target/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/lib/hive-testutils-4.0.0-alpha-2-SNAPSHOT.jar
> ./target/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/apache-hive-4.0.0-alpha-2-SNAPSHOT-bin/lib/opentest4j-1.2.0.jar
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)