Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling dubbo-rpc-redis

The binary packages available at the Kunpeng mirror site are compiled and packaged based on the open source code, and do not involve vulnerability or bug fixes.

When using open source software, comply with the applicable license.

  1. Replace the embedded-redis-0.6.jar package in the local repository. (Perform this step for Dubbo 2.7.5 only.)
    1. Obtain the embedded-redis-0.6.jar package that supports AArch64.
      1
      2
      cd /home
      wget https://mirrors.huaweicloud.com/kunpeng/maven/com/github/kstyrc/embedded-redis/0.6/embedded-redis-0.6.jar --no-check-certificate
      

      You can also obtain the embedded-redis-0.6.jar package by following instructions in embedded-redis Porting Guide.

    2. If no local repository directory exists, create one.
      1
      mkdir -p /root/.m2/repository/com/github/kstyrc/embedded-redis/0.6/
      
    3. Replace the embedded-redis-0.6.jar package in the local repository.
      1
      \cp /home/embedded-redis-0.6.jar /root/.m2/repository/com/github/kstyrc/embedded-redis/0.6/embedded-redis-0.6.jar
      
  2. Go to the dubbo-rpc-redis directory.
    1
    cd dubbo-dubbo-2.6.8/dubbo-rpc/dubbo-rpc-redis/
    
  3. Perform the compilation.
    1
    mvn install
    

    If BUILD SUCCESS is displayed, the dubbo-rpc-redis module is compiled successfully.

    If the compilation fails, a message is displayed stating "Runtime Can't start redis server. Check logs for...". For details about how to resolve this problem, see Redis Compilation Failure Due to the Redis Server Start-up Failure.