Compiling Dubbo 2.6.8
Before compiling Dubbo 2.6.8, ensure that the dubbo-rpc-redis module has been compiled. For details, see Compiling dubbo-rpc-redis.
- Replace the netty-all-4.1.25.Final.jar package in the local repository.
- Obtain the netty-all-4.1.25.Final.jar package that supports AArch64.
1 2
cd /home wget https://mirrors.huaweicloud.com/kunpeng/maven/io/netty/netty-all/4.1.25.Final/netty-all-4.1.25.Final.jar --no-check-certificate
- If no local repository directory exists, create one.
1mkdir -p /root/.m2/repository/io/netty/netty-all/4.1.25.Final/
- Replace the netty-all-4.1.25.Final.jar package in the local repository.
1\cp /home/netty-all-4.1.25.Final.jar /root/.m2/repository/io/netty/netty-all/4.1.25.Final/netty-all-4.1.25.Final.jar
- Obtain the netty-all-4.1.25.Final.jar package that supports AArch64.
- Modify the AbstractClusterInvokerTest.java file.
- Open the file.
1vim /home/Dubbo/dubbo-dubbo-2.6.8/dubbo-cluster/src/test/java/com/alibaba/dubbo/rpc/cluster/support/AbstractClusterInvokerTest.java - Press i to enter the insert mode and comment out line 144.

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Go to the dubbo-dubbo-2.6.8 directory.
1cd /home/Dubbo/dubbo-dubbo-2.6.8/
- Compile Dubbo 2.6.8.
1mvn install

If BUILD SUCCESS is displayed, Dubbo 2.6.8 is compiled successfully.
If the compilation fails, a message is displayed stating "Caused by: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on ..., cause: Address already in use". For details about how to resolve this problem, see "Failed to bind" Displayed When Compiling Dubbo.
- The compiled dubbo-2.6.8.jar package is stored in the all/target directory.
1ls /home/Dubbo/dubbo-dubbo-2.6.8/all/target
Parent topic: Compiling and Installing Dubbo