Sitelet https://github.com/apache/maven/issues/10747
Skip to content

[MNG-8471] library load disallowed by system policy on Mac #10747

Description

@jira-importer

Elliotte Rusty Harold opened MNG-8471 and commented

On a Mac with Sequoia 15.1.1 running the binary 4.0-RC2 release to "mvn clean verify" the maven-compiler-plugin

WARNING: Failed to load native library:libjlinenative.jnilib. osinfo: Mac/arm64 (caused by: java.lang.UnsatisfiedLinkError: /opt/java/apache-maven-4.0.0-rc-2/lib/jline-native/Mac/arm64/libjlinenative.jnilib: dlopen(/opt/java/apache-maven-4.0.0-rc-2/lib/jline-native/Mac/arm64/libjlinenative.jnilib, 0x0001): tried: '/opt/java/apache-maven-4.0.0-rc-2/lib/jline-native/Mac/arm64/libjlinenative.jnilib' (code signature in <E83722FF-713D-3654-A603-EEBC715887FE> '/opt/java/apache-maven-4.0.0-rc-2/lib/jline-native/Mac/arm64/libjlinenative.jnilib' not valid for use in process: library load disallowed by system policy), '/System/Volumes/Preboot/Cryptexes/OS/opt/java/apache-maven-4.0.0-rc-2/lib/jline-native/Mac/arm64/libjlinenative.jnilib' (no such file), '/opt/java/apache-maven-4.0.0-rc-2/lib/jline-native/Mac/arm64/libjlinenative.jnilib' (code signature in <E83722FF-713D-3654-A603-EEBC715887FE> '/opt/java/apache-maven-4.0.0-rc-2/lib/jline-native/Mac/arm64/libjlinenative.jnilib' not valid for use in process: library load disallowed by system policy), enable debug logging for stacktrace)

The build still seems to complete normally.

openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment Homebrew (build 17.0.12+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.12+0, mixed mode, sharing)

Further, this isn't just a warning on the console. The mac actually pops up two alert dialogs to warn about this problem that user must click away during the build.


Affects: 4.0.0-rc-2

Attachments:

0 votes, 8 watchers

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions