From 13aeadf7f33fa0745471dc3c92eab06146127c2f Mon Sep 17 00:00:00 2001 From: Nick Dimiduk Date: Fri, 1 Mar 2013 15:52:12 -0800 Subject: [PATCH] HBASE-7971 fix cached_classpath.txt dev sandbox Generate cached_classpath.txt on the compile phase as before and leave it in hbase-it/target. Update bin/hbase to look in this new location. --- bin/hbase | 8 +++++--- hbase-it/pom.xml | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/hbase b/bin/hbase index fc0ce59..9e49616 100755 --- a/bin/hbase +++ b/bin/hbase @@ -141,9 +141,11 @@ fi add_maven_deps_to_classpath() { # Need to generate classpath from maven pom. This is costly so generate it - # and cache it. Save the file into our target dir so a mvn clean will get - # clean it up and force us create a new one. - f="${HBASE_HOME}/target/cached_classpath.txt" + # and cache it. Save the file into the target dir so a mvn clean will get + # clean it up and for cecreation a new one. This file is generated by + # hbase-it because it depends on all other modules and thus its dependencies + # represent the complete classpath. + f="${HBASE_HOME}/hbase-it/target/cached_classpath.txt" if [ ! -f "${f}" ] then echo "As this is a development environment, we need ${f} to be generated from maven (command: mvn compile)" diff --git a/hbase-it/pom.xml b/hbase-it/pom.xml index 15994a6..76dcc61 100644 --- a/hbase-it/pom.xml +++ b/hbase-it/pom.xml @@ -102,12 +102,12 @@ create-hbase-generated-classpath - test + compile build-classpath - ${project.build.directory}/../../target/cached_classpath.txt + ${project.build.directory}/cached_classpath.txt -- 1.8.1