Created
May 9, 2014 16:43
-
-
Save electrum/3ecf7203a5cdcf3d528a to your computer and use it in GitHub Desktop.
Build source JAR for Hive 0.12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eux | |
GROUP=org/apache/hive | |
ARTIFACT=hive-exec | |
VERSION=0.12.0 | |
JAR=$HOME/.m2/repository/$GROUP/$ARTIFACT/$VERSION/$ARTIFACT-$VERSION-sources.jar | |
rm -vf $JAR | |
touch $JAR | |
for i in \ | |
common/src/java \ | |
metastore/src/java \ | |
metastore/src/gen/thrift/gen-javabean \ | |
ql/src/java \ | |
serde/src/java \ | |
serde/src/gen/thrift/gen-javabean \ | |
shims/src/0.20/java \ | |
shims/src/0.20S/java \ | |
shims/src/0.23/java \ | |
shims/src/common/java \ | |
shims/src/common-secure/java \ | |
; | |
do | |
jar uf $JAR -C $i org | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment