[ 
https://issues.apache.org/jira/browse/HIVE-26418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Sherman reassigned HIVE-26418:
-----------------------------------


> 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
>
> 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)

Reply via email to