我要评分
获取效率
正确性
完整性
易理解

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.

  1. Replace the netty-all-4.1.25.Final.jar package in the local repository.
    1. 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
      
    1. If no local repository directory exists, create one.
      1
      mkdir -p /root/.m2/repository/io/netty/netty-all/4.1.25.Final/
      
    2. 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
      
  2. Modify the AbstractClusterInvokerTest.java file.
    1. Open the file.
      1
      vim /home/Dubbo/dubbo-dubbo-2.6.8/dubbo-cluster/src/test/java/com/alibaba/dubbo/rpc/cluster/support/AbstractClusterInvokerTest.java
      
    2. Press i to enter the insert mode and comment out line 144.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Go to the dubbo-dubbo-2.6.8 directory.
    1
    cd /home/Dubbo/dubbo-dubbo-2.6.8/
    
  4. Compile Dubbo 2.6.8.
    1
    mvn 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.

  5. The compiled dubbo-2.6.8.jar package is stored in the all/target directory.
    1
    ls /home/Dubbo/dubbo-dubbo-2.6.8/all/target