最近公司使用的nacos(1.4.0)被查出存在未授权访问漏洞,通过查看资料了解到,nacos的版本小于等于2.0.0的都有这个问题,所以打算把nacos升级到2.0.2,到官网上下载发现网速太慢,简直忍受不了,于是决定下载源码,自己打包
1. 从github下载nacos的源码
https://github.com/alibaba/nacos.git
2. 在命令行执行 :如果是windows不要在power shell上执行
mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U
如果报错 :
mvn Failed during checkstyle execution: There are errors reported by Checkstyle 6.2
使用 mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U -Dcheckstyle.skip