Skip to content

Commit aa44d10

Browse files
committed
fix(release): build with the release native profile in build-release.sh
`core/pom.xml` defaults `datafusion.native.profile=debug`, so the antrun copy-native-lib step expects a debug-mode dylib at `native/target/debug/...`. The release orchestrator builds with `cargo build --release`, which writes to `native/target/release/...`. Pass `-Ddatafusion.native.profile=release` so the antrun check looks at the right path and the produced JAR bundles the release native libraries.
1 parent d0f8270 commit aa44d10

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎dev/release/build-release.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ cp "$PROJECT_HOME/native/target/$OTHER_DARWIN_TARGET/release/libdatafusion_jni.d
156156

157157
echo "Installing JAR into local Maven repo"
158158
LOCAL_REPO=$(mktemp -d /tmp/datafusion-java-staging-repo-XXXXXX)
159-
(cd "$PROJECT_HOME" && ./mvnw "-Dmaven.repo.local=$LOCAL_REPO" -DskipTests install)
159+
(cd "$PROJECT_HOME" && ./mvnw \
160+
"-Dmaven.repo.local=$LOCAL_REPO" \
161+
"-Ddatafusion.native.profile=release" \
162+
-DskipTests install)
160163

161164
echo ""
162165
echo "===================================================================="

0 commit comments

Comments
 (0)