René's URL Explorer Experiment


Title: Publish fat JAR with platform-specific native libraries to Maven Central · Issue #33 · apache/datafusion-java · GitHub

Open Graph Title: Publish fat JAR with platform-specific native libraries to Maven Central · Issue #33 · apache/datafusion-java

X Title: Publish fat JAR with platform-specific native libraries to Maven Central · Issue #33 · apache/datafusion-java

Description: Background datafusion-java provides a JVM binding to DataFusion via JNI. To distribute it through Maven Central, we need a packaging strategy that delivers the compiled Rust native library (.so / .dylib / .dll) alongside the Java classes...

Open Graph Description: Background datafusion-java provides a JVM binding to DataFusion via JNI. To distribute it through Maven Central, we need a packaging strategy that delivers the compiled Rust native library (.so / ....

X Description: Background datafusion-java provides a JVM binding to DataFusion via JNI. To distribute it through Maven Central, we need a packaging strategy that delivers the compiled Rust native library (.so / ....

Opengraph URL: https://github.com/apache/datafusion-java/issues/33

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Publish fat JAR with platform-specific native libraries to Maven Central","articleBody":"## Background\n\n`datafusion-java` provides a JVM binding to DataFusion via JNI. To distribute it through Maven Central, we need a packaging strategy that delivers the compiled Rust native library (`.so` / `.dylib` / `.dll`) alongside the Java classes so that consumers get a working artifact with a single dependency declaration — no separate native install step.\n\n## Goal\n\nPublish a single artifact to Maven Central that works out of the box on:\n- Linux x86_64\n- Linux aarch64\n- macOS x86_64\n- macOS aarch64\n\nWindows (x86_64) support is desirable but out of scope for the initial release. The design should leave room to add it later without restructuring.\n\n## Proposed approach: single fat JAR\n\nBundle all platform-specific native libraries in one published JAR, organized by OS/arch under a known resource path:\n\n```\norg/apache/datafusion/linux/amd64/libdatafusion_jni.so\norg/apache/datafusion/linux/aarch64/libdatafusion_jni.so\norg/apache/datafusion/darwin/x86_64/libdatafusion_jni.dylib\norg/apache/datafusion/darwin/aarch64/libdatafusion_jni.dylib\n```\n\nAt runtime, a loader class detects the current OS/arch, extracts the matching library from the JAR to a temp file, and calls `System.load()` on the absolute path. A `System.loadLibrary()` attempt should come first so users can override with a system-installed build.\n\nThis mirrors the approach used by Apache DataFusion Comet (referenced only as prior art for fat-JAR packaging — `datafusion-java` is not otherwise related to Comet or Spark). The alternative — publishing one JAR per platform with Maven classifiers — is also viable but pushes platform selection onto consumers and complicates dependency declarations.\n\n## Work items\n\n- [ ] Add a native loader class that detects OS/arch, extracts from the resource path, and loads via `System.load()`, with a `System.loadLibrary()` fallback. Include temp-file locking to handle concurrent JVMs.\n- [ ] Set up cross-compilation for the four target triples (Linux x86_64, Linux aarch64, macOS x86_64, macOS aarch64). Options: a CI matrix that produces per-arch artifacts, or Docker + OSXCross for cross-platform builds from a single host.\n- [ ] Wire the build so compiled libraries land at the correct `target/classes/...` path before `mvn package` runs.\n- [ ] Add a GitHub Actions release workflow: matrix builds per platform produce native libs as artifacts; a final job assembles them into the resource tree and runs `mvn deploy`.\n- [ ] Configure Maven Central / Sonatype publishing: staging repo, GPG signing, POM metadata.\n- [ ] Document the release process.\n\n## Future work\n\n- [ ] Windows x86_64 support. The loader OS enum should already account for `.dll` and the `win32` path segment so this becomes a build-matrix change. Windows complicates temp-file cleanup (can't delete a loaded DLL) — extract to a versioned path and let the OS handle cleanup.","author":{"url":"https://github.com/andygrove","@type":"Person","name":"andygrove"},"datePublished":"2026-05-13T21:54:25Z","url":"https://github.com/apache/datafusion-java/issues/33"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0acbe361-0117-2303-7915-bf9cc98dd849
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id922A:29CED8:2F2B26:42E9B8:6B046BB6
html-safe-nonce41203759f1bc0a8daf3046c85cb3cff9af366d982b9d400d10dd1e39cf91a677
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjJBOjI5Q0VEODoyRjJCMjY6NDJFOUI4OjZCMDQ2QkI2IiwidmlzaXRvcl9pZCI6IjExOTg1NDM2NTQwNDI3NTgwNzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac98579942cdb5d72a8b65a1655adabe2eac9401a1798412afeacb41fe2127f88d
hovercard-subject-tagissue:4441440492
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/datafusion-java/33/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8965f42ef70e4cfe2848925a18b667b8caf84342b40e35bb9eed013ab3a7623b/apache/datafusion-java/issues/33
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8965f42ef70e4cfe2848925a18b667b8caf84342b40e35bb9eed013ab3a7623b/apache/datafusion-java/issues/33
og:image:altBackground datafusion-java provides a JVM binding to DataFusion via JNI. To distribute it through Maven Central, we need a packaging strategy that delivers the compiled Rust native library (.so / ....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandygrove
hostnamegithub.com
expected-hostnamegithub.com
None83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f
turbo-cache-controlno-preview
go-importgithub.com/apache/datafusion-java git https://github.com/apache/datafusion-java.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id1237105117
octolytics-dimension-repository_nwoapache/datafusion-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1237105117
octolytics-dimension-repository_network_root_nwoapache/datafusion-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseca4d07a7cef4e4b75f821dc25e7300d80c1450a9
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/apache/datafusion-java/issues/33#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fissues%2F33
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fissues%2F33
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=apache%2Fdatafusion-java
Reloadhttps://github.com/apache/datafusion-java/issues/33
Reloadhttps://github.com/apache/datafusion-java/issues/33
Reloadhttps://github.com/apache/datafusion-java/issues/33
apachehttps://github.com/apache
datafusion-javahttps://github.com/apache/datafusion-java
Codehttps://github.com/apache/datafusion-java
Issues10 (10)https://github.com/apache/datafusion-java/issues
Pull requests10 (10)https://github.com/apache/datafusion-java/pulls
Discussionshttps://github.com/apache/datafusion-java/discussions
Actionshttps://github.com/apache/datafusion-java/actions
Security and qualityhttps://github.com/apache/datafusion-java/security
Insightshttps://github.com/apache/datafusion-java/insights
https://github.com/apache/datafusion-java
New issuehttps://github.com/login?return_to=https://github.com/apache/datafusion-java/issues/33
New issuehttps://github.com/login?return_to=https://github.com/apache/datafusion-java/issues/33
Publish fat JAR with platform-specific native libraries to Maven Centralhttps://github.com/apache/datafusion-java/issues/33#top
https://github.com/andygrove
andygrovehttps://github.com/andygrove
on May 13, 2026https://github.com/apache/datafusion-java/issues/33#issue-4441440492
https://github.com/andygrove
andygrovehttps://github.com/andygrove
on May 20, 2026https://github.com/apache/datafusion-java/issues/33#issuecomment-4499842938
@pgwhalenhttps://github.com/pgwhalen
https://github.com/pgwhalen
pgwhalenhttps://github.com/pgwhalen
on May 20, 2026https://github.com/apache/datafusion-java/issues/33#issuecomment-4500259693
github workflowhttps://github.com/pgwhalen/datafusion-java/blob/1c20733aa8b008315af6092a912b58ef3df6a482/.github/workflows/publish-ffi.yml#L170-L378
gradle taskshttps://github.com/pgwhalen/datafusion-java/blob/1c20733aa8b008315af6092a912b58ef3df6a482/datafusion-ffi-java/build.gradle#L381
Sign up for freehttps://github.com/signup?return_to=https://github.com/apache/datafusion-java/issues/33
Sign in to commenthttps://github.com/login?return_to=https://github.com/apache/datafusion-java/issues/33
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.