Add -Dtwitter to fix auto-build
Descriptions of the changes in this PR:
### Motivation
Make bin/bookkeeper standalone work again
### Changes
Add -Dtwitter in order to activate "Twitter" profile and build Twitter stats providers.
Reviewers: Sijie Guo <None>
This closes #2195 from eolivelli/fix/add-twitter-common
diff --git a/bin/common.sh b/bin/common.sh
index ea8638f..6d6e693 100755
--- a/bin/common.sh
+++ b/bin/common.sh
@@ -199,13 +199,13 @@
BUILT_JAR=$(find_module_jar_at ${BK_HOME}/${MODULE_PATH}/target ${MODULE_NAME})
if [ -z "${BUILT_JAR}" ]; then
echo "Couldn't find module '${MODULE_NAME}' jar." >&2
- read -p "Do you want me to run \`mvn package -DskipTests -Dstream\` for you ? (y|n) " answer
+ read -p "Do you want me to run \`mvn package -DskipTests -Dtwitter -Dstream\` for you ? (y|n) " answer
case "${answer:0:1}" in
y|Y )
mkdir -p ${BK_HOME}/logs
output="${BK_HOME}/logs/build.out"
echo "see output at ${output} for the progress ..." >&2
- mvn package -DskipTests -Dstream &> ${output}
+ mvn package -DskipTests -Dtwitter -Dstream &> ${output}
;;
* )
exit 1
@@ -242,7 +242,7 @@
if [ ! -f ${f} ]; then
echo "the classpath of module '${MODULE_PATH}' is not found, generating it ..." >&2
echo "see output at ${output} for the progress ..." >&2
- ${MVN} -f "${BK_HOME}/${MODULE_PATH}/pom.xml" -Dstream dependency:build-classpath -Dmdep.outputFile="target/cached_classpath.txt" &> ${output}
+ ${MVN} -f "${BK_HOME}/${MODULE_PATH}/pom.xml" -Dtwitter -Dstream dependency:build-classpath -Dmdep.outputFile="target/cached_classpath.txt" &> ${output}
echo "the classpath of module '${MODULE_PATH}' is generated at '${f}'." >&2
fi
}