Repository: bigtop
Updated Branches:
  refs/heads/master 217c313a5 -> 1357959c0


BIGTOP-1633. Pig compile fails again


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/1357959c
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/1357959c
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/1357959c

Branch: refs/heads/master
Commit: 1357959c0442be196b22f5bf7f2742289560ff96
Parents: 217c313
Author: Olaf Flebbe <[email protected]>
Authored: Thu Jan 29 10:36:54 2015 +0100
Committer: Olaf Flebbe <[email protected]>
Committed: Thu Jan 29 20:49:32 2015 +0100

----------------------------------------------------------------------
 bigtop-packages/src/common/pig/do-component-build | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/1357959c/bigtop-packages/src/common/pig/do-component-build
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/pig/do-component-build 
b/bigtop-packages/src/common/pig/do-component-build
index f7dc291..eaab447 100644
--- a/bigtop-packages/src/common/pig/do-component-build
+++ b/bigtop-packages/src/common/pig/do-component-build
@@ -30,6 +30,19 @@ __EOT__
 
 BUILD_OPTS="-Djavac.version=${JDK_VERSION} -Dforrest.home=${FORREST_HOME} 
-Dversion=${PIG_VERSION} -Dhadoopversion=23"
 
+# FIXME: there's a weird synchronization issue between ivy and Maven caches 
wrt. jetty
+# If we don't do the following the build fails with (note zip instead of jar):
+# [ivy:resolve]                ::::::::::::::::::::::::::::::::::::::::::::::
+# [ivy:resolve]                ::              FAILED DOWNLOADS            ::
+# [ivy:resolve]                :: ^ see resolution messages for details  ^ ::
+# [ivy:resolve]                ::::::::::::::::::::::::::::::::::::::::::::::
+# [ivy:resolve]                :: org.mortbay.jetty#jetty;6.1.26!jetty.zip
+# [ivy:resolve]                ::::::::::::::::::::::::::::::::::::::::::::::
+for h in ${HOME} `mvn help:system | grep '^user.home=' | cut -f2 -d=` ; do
+  rm -rf ${h}/.ivy2/cache/*jetty ${h}/.m2/repository/org/mortbay 
${h}/.m2/repository/org/eclipse/jetty
+done
+
+
 echo "forrest.maxmemory=256m" >> src/docs/forrest.properties
 
 export ANT_OPTS="-Xmx4096m"

Reply via email to