← All tasks
javaapache/maven #10747Not a task: already works

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

envgap__apache__maven-10747

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
d9f7a97a928447d637d7d6e57fab9eb361716075
Manifest
apache-maven/pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

apache/maven #10747 · read the original issue
**[Elliotte Rusty Harold](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=elharo)** opened **[MNG-8471](https://issues.apache.org/jira/browse/MNG-8471?redirect=false)** 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:**
- [Screenshot 2024-12-25 at 6.10.01 PM.png](https://issues.apache.org/jira/secure/attachment/13073694/Screenshot+2024-12-25+at+6.10.01%E2%80%AFPM.png) (_1.17 MB_)

0 votes, 8 watchers
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]