Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.0-beta-1
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
- is caused by
-
HIVE-25750 Beeline: Creating a standalone tarball by isolating dependencies
- Closed
- links to