[ 
https://issues.apache.org/jira/browse/HIVE-29189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18021186#comment-18021186
 ] 

Thomas Rebele edited comment on HIVE-29189 at 9/18/25 2:19 PM:
---------------------------------------------------------------

We could try configuring the [artifactSet 
setting|https://maven.apache.org/plugins/maven-shade-plugin/shade-mojo.html#Optional_Parameters]
 of the maven shade plugin, maybe something like this
{code:java}
            <configuration>
                <artifactSet>
                    <includes>
                        <include>com.example.groupA:libA:jar:tests</include>
                        <include>com.example.groupB:libB:jar:tests</include>
                    </includes>
                    <excludes>
                        <exclude>*:*:jar:tests</exclude>
                    </excludes>
                </artifactSet>
            </configuration> {code}


was (Author: thomas.rebele):
We could try configuring the [artifactSet 
setting|https://maven.apache.org/plugins/maven-shade-plugin/shade-mojo.html#Optional_Parameters]
 of the maven shade plugin.

> Avoid downloading tests jars for hive-druid-handler
> ---------------------------------------------------
>
>                 Key: HIVE-29189
>                 URL: https://issues.apache.org/jira/browse/HIVE-29189
>             Project: Hive
>          Issue Type: Wish
>            Reporter: Thomas Rebele
>            Priority: Major
>
> For my dev environment, packaging hive-druid-handler takes a long time 
> (sometimes more than 15 minutes).
> Reason is that it tries to download many tests jars:
> {code:java}
> [WARNING] Could not get tests for 
> com.fasterxml.jackson.module:jackson-module-guice:jar:2.16.1:runtime
> [WARNING] Could not get tests for 
> io.opentelemetry:opentelemetry-exporter-otlp:jar:1.42.0:compile
> [WARNING] Could not get tests for 
> org.apache.druid:druid-console:jar:0.17.1:runtime
> ...{code}
> There is a warning from the logs about duplicate files and just the following 
> test jars are mentioned:
> {code:java}
> async-http-client-2.5.3-tests.jar
> commons-collections4-4.1-tests.jar
> commons-compress-1.26.0-tests.jar
> commons-configuration2-2.10.1-tests.jar
> commons-dbcp2-2.12.0-tests.jar
> commons-jexl3-3.3-tests.jar
> commons-lang3-3.12.0-tests.jar
> commons-math3-3.6.1-tests.jar
> commons-pool2-2.12.0-tests.jar
> commons-text-1.10.0-tests.jar
> druid-core-0.17.1-tests.jar
> druid-hll-0.17.1-tests.jar
> druid-processing-0.17.1-tests.jar
> druid-server-0.17.1-tests.jar
> hive-druid-handler-4.2.0-SNAPSHOT-tests.jar
> jdbi-2.63.1-tests.jar{code}
> In HIVE-28140, the tests jars were [excluded 
> completely|https://github.com/apache/hive/pull/5135/files] for the Kafka 
> handler.
> Could we do the same with the hive-druid-handler and others? Or 
> alternatively, only include those tests jars that are actually 
> necessary/available?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to