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

ASF GitHub Bot updated HIVE-28053:
----------------------------------
    Labels: pull-request-available  (was: )

> Incorrect shading configuration for beeline jar-with-dependencies
> -----------------------------------------------------------------
>
>                 Key: HIVE-28053
>                 URL: https://issues.apache.org/jira/browse/HIVE-28053
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>    Affects Versions: 4.0.0-beta-1
>            Reporter: Stamatis Zampetakis
>            Assignee: Stamatis Zampetakis
>            Priority: Major
>              Labels: pull-request-available
>
> The [shading 
> configuration|https://github.com/apache/hive/blob/e892ce7212b2f0c9e55092d89076b129c86c8172/beeline/pom.xml#L245]
>  for the jar-with-dependencies artifact in beeline module has two problems.
> {code:xml}
>               <descriptorRefs>
>                 <descriptorRef>jar-with-dependencies</descriptorRef>
>               </descriptorRefs>
>               <finalName>jar-with-dependencies</finalName>
>               <transformers>
>                 <transformer 
> implementation="com.github.edwgiz.mavenShadePlugin.log4j2CacheTransformer.PluginsCacheFileTransformer"/>
>                 <transformer 
> implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
>                   <mainClass>org.openjdk.jmh.Main</mainClass>
>                 </transformer>
>               </transformers>
> {code}
> 1. "descriptorRefs" is not a valid configuration [parameter for the 
> maven-shade-plugin|https://maven.apache.org/plugins-archives/maven-shade-plugin-2.4.3/shade-mojo.html].
>  The descriptorRefs parameter exists in the 
> [maven-assembly-plugin|https://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html#descriptorrefs]
>  but here it is completely irrelevant and useless.
> 2. The mainClass attribute points to a completely irrelevant Main class from 
> the jmh library. Any attempt to launch the "jar-with-dependencies" artifact 
> with further configuration will raise an error.
> {noformat}
> java -jar jar-with-dependencies
> Error: Could not find or load main class org.openjdk.jmh.Main
> {noformat}



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

Reply via email to