Skip to content

Commit

Permalink
Build classpath using compile scope (apache#272)
Browse files Browse the repository at this point in the history
The `compile` scope in dependency plugin means : compile, provided, and system dependencies
  • Loading branch information
sijie committed Mar 4, 2018
1 parent 82bccd1 commit ae1ac31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pulsar-functions/bin/pulsar
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ add_maven_deps_to_classpath() {
f="${PULSAR_HOME}/worker/target/classpath_shaded.txt"
if [ ! -f "${f}" ]
then
${MVN} -f "${PULSAR_HOME}/worker/pom.xml" dependency:build-classpath -Dmdep.outputFile="${f}" &> /dev/null
${MVN} -f "${PULSAR_HOME}/worker/pom.xml" dependency:build-classpath -DincludeScope=compile -Dmdep.outputFile="${f}" &> /dev/null
fi
PULSAR_CLASSPATH=${CLASSPATH}:`cat "${f}"`
}
Expand Down
2 changes: 1 addition & 1 deletion pulsar-functions/bin/pulsar-functions
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ add_maven_deps_to_classpath() {
f="${PULSAR_HOME}/cli/target/classpath_shaded.txt"
if [ ! -f "${f}" ]
then
${MVN} -f "${PULSAR_HOME}/cli/pom.xml" dependency:build-classpath -Dmdep.outputFile="${f}" &> /dev/null
${MVN} -f "${PULSAR_HOME}/cli/pom.xml" dependency:build-classpath -DincludeScope=compile -Dmdep.outputFile="${f}" &> /dev/null
fi
PULSAR_CLASSPATH=${CLASSPATH}:`cat "${f}"`
}
Expand Down

0 comments on commit ae1ac31

Please sign in to comment.