Hi Maarten,
according your MacOS problem:
I remember we had a quite new issue about this, where (I think it was)
Benjamin also mentioned your sudo command, but which also requires
rights not everybody may have in every environment (company restrictions
might take place) and discussion took place if/why we need the lib at
all. I don't find the issue anymore :( But I found an older which also
mentioned the issue (but not the workaround):
https://github.com/apache/maven/issues/10747
@all
If someone can remember the issue and/or tell me why we need this
library, I'm happy to add a note to the install page.
Greetings
Matthias
1. I noticed that upon first start, macOS will give a popup saying it
refuses to load libjlinenative.jnilib. In the terminal, I see this
message:
WARNING: Failed to load native library:libjlinenative.jnilib. osinfo:
Mac/arm64 (caused by: java.lang.UnsatisfiedLinkError:
/Users/maarten/Tools/apache-maven-4.0.0-rc-5/lib/jline-native/Mac/arm64/libjlinenative.jnilib:
dlopen(/Users/maarten/Tools/apache-maven-4.0.0-rc-5/lib/jline-native/Mac/arm64/libjlinenative.jnilib,
0x0001): tried:
'/Users/maarten/Tools/apache-maven-4.0.0-rc-5/lib/jline-native/Mac/arm64/libjlinenative.jnilib'
(code signature in <E83722FF-713D-3654-A603-EEBC715887FE>
'/Users/maarten/Tools/apache-maven-4.0.0-rc-5/lib/jline-native/Mac/arm64/libjlinenative.jnilib'
not valid for use in process: library load disallowed by system
policy),
'/System/Volumes/Preboot/Cryptexes/OS/Users/maarten/Tools/apache-maven-4.0.0-rc-5/lib/jline-native/Mac/arm64/libjlinenative.jnilib'
(no such file),
'/Users/maarten/Tools/apache-maven-4.0.0-rc-5/lib/jline-native/Mac/arm64/libjlinenative.jnilib'
(code signature in <E83722FF-713D-3654-A603-EEBC715887FE>
'/Users/maarten/Tools/apache-maven-4.0.0-rc-5/lib/jline-native/Mac/arm64/libjlinenative.jnilib'
not valid for use in process: library load disallowed by system
policy), enable debug logging for stacktrace)
It can be solved by running
sudo xattr -r -d com.apple.quarantine /path/to/libjlinenative.jnilib
I think we should have mention in our release documentation and in [1].
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]