Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Obtain BoringSSL During Compilation

Symptom

Failed to obtain BoringSSL during the compilation. The message "Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.9.4:checkout(get-boringssl)" is displayed.

Key Process and Cause Analysis

The possible cause is that the system environment requires a proxy to access the Internet.

Conclusion and Solution

  1. Go to the /home/netty-tcnative-netty-tcnative-parent-2.0.28.Final/boringssl-static/target/ directory.
    cd /home/netty-tcnative-netty-tcnative-parent-2.0.28.Final/boringssl-static/target/
  2. Obtain boringssl-chromium-stable.
    git config --global http.sslVerify false
    git clone --branch chromium-stable https://github.com/google/boringssl /home/netty-tcnative-netty-tcnative-parent-2.0.28.Final/boringssl-static/target/boringssl-chromium-stable
  3. Back up and view boringssl-chromium-stable.
    cp -r boringssl-chromium-stable /root/
    du -sh /root/boringssl-chromium-stable
  4. Run the compile command again.
    mvn clean install