1. 拉取源码
fork GitHub.
git clone
1. 准备工作
- git
- maven
2. 下载idea
3. build source code
需要注意的几个点:
- linux 上需要先安装几个工具
// centos
root# yum install lsb-core autoconf automake libtool make tar \
glibc-devel libaio-devel openssl-devel apr-devel \
lksctp-tools
// ubuntu
root # apt-get install autoconf automake libtool make tar \
libaio-dev libssl-dev libapr1-dev \
lksctp-tools
-
idea 需要修改 compiler
https://www.jetbrains.com/help/idea/troubleshooting-common-maven-issues.html#check_compiler_settings
-
mvn clean install -DskipTests
参考资料:
[1] https://netty.io/wiki/setting-up-development-environment.html
[2] https://groups.google.com/g/netty/
[3] https://www.jetbrains.com/help/idea/troubleshooting-common-maven-issues.html#check_compiler_settings