MINOR - OpenMetadata OPS to load collate-service jars first (#15143)

This commit is contained in:
Pere Miquel Brull 2024-02-12 10:47:49 +01:00 committed by GitHub
parent 5063b341e4
commit aaa649a637
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,6 +38,13 @@ if [ ${debug} ] ; then
echo $LIBS_DIR echo $LIBS_DIR
fi fi
if [ -d "${LIBS_DIR}" ]; then if [ -d "${LIBS_DIR}" ]; then
# First, add collate-service jar to the classpath.
# This is required for cases where we override classes from dependencies.
for file in "${LIBS_DIR}"collate-service-*.jar;
do
CLASSPATH="$CLASSPATH":"$file"
done
# Then, add the rest of the libraries
for file in "${LIBS_DIR}"*.jar; for file in "${LIBS_DIR}"*.jar;
do do
CLASSPATH="$CLASSPATH":"$file" CLASSPATH="$CLASSPATH":"$file"