Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-28053

Incorrect shading configuration for beeline jar-with-dependencies

    XMLWordPrintableJSON

Details

    Description

      The shading configuration for the jar-with-dependencies artifact in beeline module has two problems.

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

      1. "descriptorRefs" is not a valid configuration parameter for the maven-shade-plugin. The descriptorRefs parameter exists in the maven-assembly-plugin 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.

      java -jar jar-with-dependencies
      Error: Could not find or load main class org.openjdk.jmh.Main
      

      Attachments

        Issue Links

          Activity

            People

              zabetak Stamatis Zampetakis
              zabetak Stamatis Zampetakis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: