projectlombok / lombok

Very spicy additions to the Java programming language.
https://projectlombok.org/
Other
12.83k stars 2.37k forks source link

[BUG] Installation via jar problematic on Mac Sierra and later #2631

Open Marcuse7 opened 3 years ago

Marcuse7 commented 3 years ago

The documentation for Eclipse states "Double-click lombok.jar". On a Mac with macOS "Sierra" or later, the Apple Gatekeeper will block this action as the jar is unsigned.

Please include at least one workaround in the documentation, such as using java -jar ~/Downloads/lombok.jar from terminal.

Otherwise, please consider signing the jar with an inexpensive certificate such as Comodo (you could use Patreon to raise the money for that).

rspilker commented 3 years ago

Not sure if signing using such a certificate would solve the problem.

Does right-clicking the jar and selecting "Open" allow you to run the code anyway?

We are migrating to using the Eclipse plug-in system P2 to install Lombok into your Eclipse.

rzwitserloot commented 3 years ago

It's not so much about the cost, it's about the maintenance burden of figuring this stuff out. From my limited understanding of what gatekeeper is, signing it with a comodo cert, or the concept of 'a signed jar' has no effect whatsoever on what gatekeeper would do.

rzwitserloot commented 3 years ago

Done some more research and it looks like apple made it impossible to sign a jar such that it is no longer stopped by gatekeeper or whatever that is.

I'm going to give it a week or two for somebody to explain to how to fix this problem, and if nothing is forthcoming, this issue will be closed with no action. A java developer using a mac will know this (or if they don't, the fact that the lombok instructions don't spell it out is the least of their problems).