GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] Native macOS libraries (osx-aarch64 and osx-x86_64) missing from v1.21.0 JARs on Maven Central · Issue #246 · hyperxpro/Brotli4j

[BUG] Native macOS libraries (osx-aarch64 and osx-x86_64) missing from v1.21.0 JARs on Maven Central #246

New issue
Copy link
New issue
Copy link
Closed
#247
Closed
[BUG] Native macOS libraries (osx-aarch64 and osx-x86_64) missing from v1.21.0 JARs on Maven Central#246
#247
Copy link

Description

@pvillard31
pvillard31
opened on Mar 29, 2026
Issue body actions

Summary

The native-osx-aarch64 and native-osx-x86_64 artifacts published to Maven Central for v1.21.0 are missing the native libbrotli.dylib files. This causes an UnsatisfiedLinkError at runtime on macOS.

Steps to Reproduce

  1. Upgrade from Brotli4j 1.20.0 to 1.21.0
  2. Attempt to use Brotli compression/decompression on macOS (both x86_64 and aarch64)

Error

java.lang.UnsatisfiedLinkError: Failed to load Brotli native library Caused by: java.lang.UnsatisfiedLinkError: Failed to find Brotli native library in classpath: /lib/osx-aarch64/libbrotli.dylib

Analysis

I downloaded and inspected the published JARs from Maven Central. The macOS native libraries are missing from v1.21.0 while they were present in v1.20.0:

Artifact v1.20.0 v1.21.0
native-linux-x86_64 ✅ libbrotli.so present ✅ libbrotli.so present
native-linux-aarch64 ✅ libbrotli.so present ✅ libbrotli.so present
native-osx-x86_64 ✅ libbrotli.dylib present ❌ missing
native-osx-aarch64 ✅ libbrotli.dylib present ❌ missing
native-windows-x86_64 ✅ brotli.dll present ✅ brotli.dll present
native-windows-aarch64 ✅ brotli.dll present ✅ brotli.dll present

For example, listing the contents of native-osx-aarch64-1.21.0.jar shows no lib/ directory at all:

META-INF/ META-INF/MANIFEST.MF com/aayushatharva/brotli4j/macos/aarch64/NativeLoader.class META-INF/maven/com.aayushatharva.brotli4j/native-osx-aarch64/pom.xml META-INF/maven/com.aayushatharva.brotli4j/native-osx-aarch64/pom.properties META-INF/versions/9/module-info.class

Whereas native-osx-aarch64-1.20.0.jar correctly contains:

lib/osx-aarch64/libbrotli.dylib

Suspected Cause

The release CI pipeline was restructured in v1.21.0 (#228, #245). The previous approach merged all platform build artifacts into a single directory and deployed from there. The new approach copies individual target/ directories back into the checkout and deploys from the repo root. The macOS artifact copy step may have failed silently — likely because macos-latest now runs on Apple Silicon (aarch64), which may affect where the native build output ends up relative to what the release job expects to copy.

Environment

  • Brotli4j version: 1.21.0
  • Platform: macOS (both aarch64 and x86_64 affected)
  • JDK: 21 (Zulu)
Reacted by Aayush Atharva and Benoit SCHWEBLIN

Activity

  1. hyperxpro commented on Mar 29, 2026

    @hyperxpro
    hyperxpro
    on Mar 29, 2026
    Owner
    More actions

    Thanks for reporting and providing detailed information.

    I will ship the fix ASAP!

    Reacted by Pierre Villard and Benoit SCHWEBLIN
  2. hyperxpro
    closed this as completedin #247on Mar 29, 2026
  3. pull
    added a commit that references this issue on Mar 29, 2026

    Add native binary validation script (hyperxpro#247)

    91bc58b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.