diff options
authorLuigi Toscano <>2017-07-10 18:21:52 +0200
committerLuigi Toscano <>2017-07-10 18:21:52 +0200
commit6ec96264a41cd2e6195269566711b596a66f4687 (patch)
parent70090c2a9445be9b7c4778f491b9b098f2ccfbd9 (diff)
Fix building oozie 4.2.0
Remove the reference to, which is still still references by the pom.xml file for oozie 4.2; see Change-Id: I7420cd27bd732932bd113f18060ca89c2a882ff8
Notes (review): Code-Review+1: Jeremy Freudberg <> Code-Review+2: Telles Mota Vidal Nóbrega <> Workflow+1: Telles Mota Vidal Nóbrega <> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Mon, 10 Jul 2017 18:52:24 +0000 Reviewed-on: Project: openstack/sahara-extra Branch: refs/heads/master
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/ b/tools/
index 10b088e..9e03175 100755
--- a/tools/
+++ b/tools/
@@ -24,7 +24,7 @@ esac
24 24
25echo "Install required packages" 25echo "Install required packages"
26sudo apt-get purge -y maven2 maven 26sudo apt-get purge -y maven2 maven
27sudo apt-get install -y maven openjdk-7-jdk wget 27sudo apt-get install -y maven openjdk-8-jdk wget xmlstarlet
28mvn --version 28mvn --version
29 29
30echo "Download and unpack Oozie" 30echo "Download and unpack Oozie"
@@ -34,6 +34,11 @@ tar xzf oozie-${OOZIE_VERSION}.tar.gz
34echo "Build Oozie" 34echo "Build Oozie"
35pushd oozie-${OOZIE_VERSION} 35pushd oozie-${OOZIE_VERSION}
36find . -name pom.xml | xargs sed -ri "s/${PREV_OOZIE_HADOOP_VERSION}/${HADOOP_VERSION}/g" 36find . -name pom.xml | xargs sed -ri "s/${PREV_OOZIE_HADOOP_VERSION}/${HADOOP_VERSION}/g"
37if [ "${OOZIE_VERSION}" = "4.2.0" ]; then
38 # see
39 mv pom.xml pom.xml.orig
40 xmlstarlet ed -P -N N="" -d "/N:project/N:repositories/N:repository[N:url='']" pom.xml.orig >pom.xml
37./bin/ assembly:single ${BUILD_ARGS} -DjavaVersion=1.7 -DtargetJavaVersion=1.7 -DskipTests 42./bin/ assembly:single ${BUILD_ARGS} -DjavaVersion=1.7 -DtargetJavaVersion=1.7 -DskipTests
38mkdir -p ./../dist/oozie/ 43mkdir -p ./../dist/oozie/
39mv distro/target/oozie-${OOZIE_VERSION}-distro.tar.gz ./../dist/oozie/oozie-${OOZIE_VERSION}-hadoop-${HADOOP_VERSION}.tar.gz 44mv distro/target/oozie-${OOZIE_VERSION}-distro.tar.gz ./../dist/oozie/oozie-${OOZIE_VERSION}-hadoop-${HADOOP_VERSION}.tar.gz