HBASE-6961 In place scripts fail if mvn install hasn't been run

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1396307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
eclark 2012-10-09 20:47:33 +00:00
parent 209d430c4b
commit 4d6f61bab8
1 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ add_maven_deps_to_classpath() {
f="${HBASE_HOME}/target/cached_classpath.txt"
if [ ! -f "${f}" ]
then
${MVN} -f "${HBASE_HOME}/pom.xml" dependency:build-classpath -Dmdep.outputFile="${f}" &> /dev/null
${MVN} -f "${HBASE_HOME}/pom.xml" package dependency:build-classpath -DskipTests -Dmdep.outputFile="${f}" &> /dev/null
fi
CLASSPATH=${CLASSPATH}:`cat "${f}"`
}
@ -179,9 +179,9 @@ add_maven_test_classes_to_classpath(){
#Add the development env class path stuff
if $in_dev_env; then
add_maven_deps_to_classpath
add_maven_main_classes_to_classpath
add_maven_test_classes_to_classpath
add_maven_deps_to_classpath
fi
#add the hbase jars for each module