1.从github下载最新的Netty稳定版本源码
2.解压源码文件夹
3.导入IDEA
4.跳过checkstyle和xml validate
<plugin> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.12.1</version> <executions> <execution> <id>check-style</id> <goals> <goal>check</goal> </goals> <phase>validate</phase> <configuration> <skip>true</skip> </configuration> </execution> </executions> </plugin>
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>xml-maven-plugin</artifactId> <version>1.0.1</version> <executions> <execution> <id>check-style</id> <goals> <goal>check-format</goal> </goals> <phase>validate</phase> </execution> </executions> <configuration> <skip>true</skip> </configuration> </plugin>
5.clean&install