summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Toscano <ltoscano@redhat.com>2017-07-10 18:21:52 +0200
committerLuigi Toscano <ltoscano@redhat.com>2017-07-10 18:21:52 +0200
commit6ec96264a41cd2e6195269566711b596a66f4687 (patch)
tree9ae81546ed5becb5e1556ad51c5e47c5d2f22ed0
parent70090c2a9445be9b7c4778f491b9b098f2ccfbd9 (diff)
Fix building oozie 4.2.0
Remove the reference to repository.codehaus.org, which is still still references by the pom.xml file for oozie 4.2; see https://issues.apache.org/jira/browse/OOZIE-2417 Change-Id: I7420cd27bd732932bd113f18060ca89c2a882ff8
Notes
Notes (review): Code-Review+1: Jeremy Freudberg <jeremyfreudberg@gmail.com> Code-Review+2: Telles Mota Vidal Nóbrega <tenobreg@redhat.com> Workflow+1: Telles Mota Vidal Nóbrega <tenobreg@redhat.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Mon, 10 Jul 2017 18:52:24 +0000 Reviewed-on: https://review.openstack.org/482202 Project: openstack/sahara-extra Branch: refs/heads/master
-rwxr-xr-xtools/build-oozie.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/build-oozie.sh b/tools/build-oozie.sh
index 10b088e..9e03175 100755
--- a/tools/build-oozie.sh
+++ b/tools/build-oozie.sh
@@ -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 https://issues.apache.org/jira/browse/OOZIE-2417
39 mv pom.xml pom.xml.orig
40 xmlstarlet ed -P -N N="http://maven.apache.org/POM/4.0.0" -d "/N:project/N:repositories/N:repository[N:url='http://repository.codehaus.org/']" pom.xml.orig >pom.xml
41fi
37./bin/mkdistro.sh assembly:single ${BUILD_ARGS} -DjavaVersion=1.7 -DtargetJavaVersion=1.7 -DskipTests 42./bin/mkdistro.sh 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