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:
parent
209d430c4b
commit
4d6f61bab8
|
@ -153,7 +153,7 @@ add_maven_deps_to_classpath() {
|
||||||
f="${HBASE_HOME}/target/cached_classpath.txt"
|
f="${HBASE_HOME}/target/cached_classpath.txt"
|
||||||
if [ ! -f "${f}" ]
|
if [ ! -f "${f}" ]
|
||||||
then
|
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
|
fi
|
||||||
CLASSPATH=${CLASSPATH}:`cat "${f}"`
|
CLASSPATH=${CLASSPATH}:`cat "${f}"`
|
||||||
}
|
}
|
||||||
|
@ -179,9 +179,9 @@ add_maven_test_classes_to_classpath(){
|
||||||
|
|
||||||
#Add the development env class path stuff
|
#Add the development env class path stuff
|
||||||
if $in_dev_env; then
|
if $in_dev_env; then
|
||||||
add_maven_deps_to_classpath
|
|
||||||
add_maven_main_classes_to_classpath
|
add_maven_main_classes_to_classpath
|
||||||
add_maven_test_classes_to_classpath
|
add_maven_test_classes_to_classpath
|
||||||
|
add_maven_deps_to_classpath
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#add the hbase jars for each module
|
#add the hbase jars for each module
|
||||||
|
|
Loading…
Reference in New Issue