【Mac】安装好maven后输入 mvn --version 报错 “libjansi.jnilib” cannot be opened because the developer cannot be verified

【Mac】安装好maven后输入 mvn --version 报错 “libjansi.jnilib” cannot be opened because the developer cannot be verified

如下图所示:

      

【解决办法】

1、打开  System Preferences :

System Preferences -> Security & Privacy -> Allow Anyway

    

2、再次 输入 mvn --version,会再弹出一个弹窗 ,点击 open即可。

     

3、再次 输入 mvn --version,这次就不会再有弹窗了。

【Reference】

1、libjansi.jnilib cannot be opened because the developer cannot be verified – macOS 10.15

原文地址:https://www.cnblogs.com/shenxiaolin/p/15081246.html