diff --git a/dist/pom.xml b/dist/pom.xml
index 2035480b..ede3be73 100644
--- a/dist/pom.xml
+++ b/dist/pom.xml
@@ -21,6 +21,13 @@ limitations under the License.
4.0.0
+
+ 6
+ 0.35
+ ${tomcat.majorVersion}.${tomcat.minorVersion}
+
+
+
org.apache
sqoop
@@ -72,10 +79,10 @@ limitations under the License.
-
-
+
diff --git a/dist/src/main/bin/sqoop.sh b/dist/src/main/bin/sqoop.sh
index f644147f..dd2e3231 100755
--- a/dist/src/main/bin/sqoop.sh
+++ b/dist/src/main/bin/sqoop.sh
@@ -34,6 +34,9 @@ CUR_DIR=`cd $(dirname $(which $0))/..; pwd`
cd ${CUR_DIR}
echo "Sqoop home directory: ${CUR_DIR}..."
+CATALINA_BIN=${CATALINA_BIN:-server/bin}
+CLIENT_LIB=${CLIENT_LIB:-client/lib}
+
COMMAND=$1
case $COMMAND in
server)
@@ -42,12 +45,12 @@ case $COMMAND in
exit
fi
- server/bin/catalina.sh $2
+ $CATALINA_BIN/catalina.sh $2
;;
client)
# Build class path with full path to each library
- for f in client/lib/*.jar; do
+ for f in $CLIENT_LIB/*.jar; do
CLASSPATH=${CLASSPATH}:`readlink -f $f`;
done