Cesar Jorge created HIVE-14986: ---------------------------------- Summary: Building with Maven since version 1.2.1 get jars with one absolute path Key: HIVE-14986 URL: https://issues.apache.org/jira/browse/HIVE-14986 Project: Hive Issue Type: Bug Components: Hive Affects Versions: 1.2.1 Environment: Linux with Maven 3.2.5 or 3.3.9, OpenJDK 1.7.0_111
Reporter: Cesar Jorge Building with Maven since version 1.2.1 get jars with one absolute path We tempted to upgrade from HIVE version 0.13.0 to 1.2.1. We have these dependencies: <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-exec</artifactId> <version>1.2.1</version> </dependency> <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> <version>1.2.1</version> </dependency> We build a big jar with dependencies, and after, use the compression tool pack200 of OpenJDK to reduce the jar When we execute the pack200, we getting the following error: "Exception in thread "main" java.lang.IllegalArgumentException: absolute file name /" Inspecting the generated jar with jar tvf, we see the following file with an absolute path: jar tvf myjar.jar | grep " /" 0 Fri Oct 14 08:00:58 UTC 2016 / 30359 Fri Oct 14 08:01:36 UTC 2016 /apache-curator-2.6.0.pom We tempt to launch with debug mode: -X -e -Dmaven.compiler.verbose=true And show the following trace lines: ...... [DEBUG] Adding dependency artifact org.apache.hive:hive-exec:jar:1.2.1. [DEBUG] Unpacking artifact contents for: org.apache.hive:hive-exec:jar:1.2.1:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hive/hive-exec/1.2.1/hive-exec-1.2.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hive:hive-ant:jar:1.2.1. [DEBUG] Unpacking artifact contents for: org.apache.hive:hive-ant:jar:1.2.1:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hive/hive-ant/1.2.1/hive-ant-1.2.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.ant:ant:jar:1.9.1. [DEBUG] Unpacking artifact contents for: org.apache.ant:ant:jar:1.9.1:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/ant/ant/1.9.1/ant-1.9.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.ant:ant-launcher:jar:1.9.1. [DEBUG] Unpacking artifact contents for: org.apache.ant:ant-launcher:jar:1.9.1:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/ant/ant-launcher/1.9.1/ant-launcher-1.9.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hive:hive-metastore:jar:1.2.1. [DEBUG] Unpacking artifact contents for: org.apache.hive:hive-metastore:jar:1.2.1:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hive/hive-metastore/1.2.1/hive-metastore-1.2.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hive:hive-serde:jar:1.2.1. [DEBUG] Unpacking artifact contents for: org.apache.hive:hive-serde:jar:1.2.1:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hive/hive-serde/1.2.1/hive-serde-1.2.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hive:hive-common:jar:1.2.1. [DEBUG] Unpacking artifact contents for: org.apache.hive:hive-common:jar:1.2.1:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hive/hive-common/1.2.1/hive-common-1.2.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hive:hive-shims:jar:1.2.1. [DEBUG] Unpacking artifact contents for: org.apache.hive:hive-shims:jar:1.2.1:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hive/hive-shims/1.2.1/hive-shims-1.2.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hive.shims:hive-shims-common:jar:1.2.1. [DEBUG] Unpacking artifact contents for: org.apache.hive.shims:hive-shims-common:jar:1.2.1:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hive/shims/hive-shims-common/1.2.1/hive-shims-common-1.2.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.curator:curator-framework:jar:2.6.0. [DEBUG] Unpacking artifact contents for: org.apache.curator:curator-framework:jar:2.6.0:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/curator/curator-framework/2.6.0/curator-framework-2.6.0.jar to archive location: [DEBUG] Adding dependency artifact org.apache.curator:curator-client:jar:2.6.0. [DEBUG] Unpacking artifact contents for: org.apache.curator:curator-client:jar:2.6.0:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/curator/curator-client/2.6.0/curator-client-2.6.0.jar to archive location: [DEBUG] Adding dependency artifact org.apache.zookeeper:zookeeper:jar:3.4.6. [DEBUG] Unpacking artifact contents for: org.apache.zookeeper:zookeeper:jar:3.4.6:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar to archive location: [DEBUG] Adding dependency artifact jline:jline:jar:2.12. [DEBUG] Unpacking artifact contents for: jline:jline:jar:2.12:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/jline/jline/2.12/jline-2.12.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hive.shims:hive-shims-0.20S:jar:1.2.1. [DEBUG] Unpacking artifact contents for: org.apache.hive.shims:hive-shims-0.20S:jar:1.2.1:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hive/shims/hive-shims-0.20S/1.2.1/hive-shims-0.20S-1.2.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hive.shims:hive-shims-0.23:jar:1.2.1. [DEBUG] Unpacking artifact contents for: org.apache.hive.shims:hive-shims-0.23:jar:1.2.1:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hive/shims/hive-shims-0.23/1.2.1/hive-shims-0.23-1.2.1.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:2.6.0. [DEBUG] Unpacking artifact contents for: org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:2.6.0:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hadoop/hadoop-yarn-server-resourcemanager/2.6.0/hadoop-yarn-server-resourcemanager-2.6.0.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hadoop:hadoop-annotations:jar:2.6.0. [DEBUG] Unpacking artifact contents for: org.apache.hadoop:hadoop-annotations:jar:2.6.0:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hadoop/hadoop-annotations/2.6.0/hadoop-annotations-2.6.0.jar to archive location: .... [DEBUG] Adding dependency artifact org.apache.hadoop:hadoop-yarn-common:jar:2.6.0. [DEBUG] Unpacking artifact contents for: org.apache.hadoop:hadoop-yarn-common:jar:2.6.0:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hadoop/hadoop-yarn-common/2.6.0/hadoop-yarn-common-2.6.0.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hadoop:hadoop-yarn-api:jar:2.6.0. [DEBUG] Unpacking artifact contents for: org.apache.hadoop:hadoop-yarn-api:jar:2.6.0:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hadoop/hadoop-yarn-api/2.6.0/hadoop-yarn-api-2.6.0.jar to archive location: ... [DEBUG] Adding dependency artifact org.apache.hadoop:hadoop-yarn-server-common:jar:2.6.0. [DEBUG] Unpacking artifact contents for: org.apache.hadoop:hadoop-yarn-server-common:jar:2.6.0:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hadoop/hadoop-yarn-server-common/2.6.0/hadoop-yarn-server-common-2.6.0.jar to archive location: [DEBUG] Adding dependency artifact org.fusesource.leveldbjni:leveldbjni-all:jar:1.8. [DEBUG] Unpacking artifact contents for: org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/fusesource/leveldbjni/leveldbjni-all/1.8/leveldbjni-all-1.8.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice:jar:2.6.0. [DEBUG] Unpacking artifact contents for: org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice:jar:2.6.0:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hadoop/hadoop-yarn-server-applicationhistoryservice/2.6.0/hadoop-yarn-server-applicationhistoryservice-2.6.0.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.6.0. [DEBUG] Unpacking artifact contents for: org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.6.0:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hadoop/hadoop-yarn-server-web-proxy/2.6.0/hadoop-yarn-server-web-proxy-2.6.0.jar to archive location: [DEBUG] Adding dependency artifact org.apache.hive.shims:hive-shims-scheduler:jar:1.2.1. [DEBUG] Unpacking artifact contents for: org.apache.hive.shims:hive-shims-scheduler:jar:1.2.1:runtime to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/hive/shims/hive-shims-scheduler/1.2.1/hive-shims-scheduler-1.2.1.jar to archive location: ... [DEBUG] Adding dependency artifact org.antlr:antlr-runtime:jar:3.4. [DEBUG] Unpacking artifact contents for: org.antlr:antlr-runtime:jar:3.4:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/antlr/antlr-runtime/3.4/antlr-runtime-3.4.jar to archive location: [DEBUG] Adding dependency artifact org.antlr:stringtemplate:jar:3.2.1. [DEBUG] Unpacking artifact contents for: org.antlr:stringtemplate:jar:3.2.1:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/antlr/stringtemplate/3.2.1/stringtemplate-3.2.1.jar to archive location: [DEBUG] Adding dependency artifact antlr:antlr:jar:2.7.7. [DEBUG] Unpacking artifact contents for: antlr:antlr:jar:2.7.7:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar to archive location: [DEBUG] Adding dependency artifact org.apache.thrift:libfb303:jar:0.9.2. [DEBUG] Unpacking artifact contents for: org.apache.thrift:libfb303:jar:0.9.2:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/thrift/libfb303/0.9.2/libfb303-0.9.2.jar to archive location: [DEBUG] Adding dependency artifact org.antlr:ST4:jar:4.0.4. [DEBUG] Unpacking artifact contents for: org.antlr:ST4:jar:4.0.4:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/antlr/ST4/4.0.4/ST4-4.0.4.jar to archive location: [DEBUG] Adding dependency artifact org.apache.ivy:ivy:jar:2.4.0. [DEBUG] Unpacking artifact contents for: org.apache.ivy:ivy:jar:2.4.0:compile to: [DEBUG] includes: **/* [DEBUG] excludes: none [DEBUG] Adding archived file-set in: /home/cygnus/.m2/repository/org/apache/ivy/ivy/2.4.0/ivy-2.4.0.jar to archive location: [DEBUG] Adding file: /home/cygnus/.m2/repository/org/apache/curator/apache-curator/2.6.0/apache-curator-2.6.0.pom to archive location: /apache-curator-2.6.0.pom The line Adding file, is here where write this file with absolute path -- This message was sent by Atlassian JIRA (v6.3.4#6332)