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

Failed to Download sbt-launch.jar or "error 1" Reported When Compiling snappy-java-1.1.1.3, 1.1.1.6, 1.1.1.7, 1.1.2.1 or 1.1.2.6

Symptom

An error is reported during compilation:

1
make: *** [target/snappy-java-1.1.1.3.jar] Error 1

Key Process and Cause Analysis

None

Conclusion and Solution

The procedures are the same for the mentioned versions. The following uses version 1.1.1.3 as an example:

  1. Go to the /root/.sbt/launchers/0.13.5 directory.
    1
    cd /root/.sbt/launchers/0.13.5
    
    • For versions 1.1.1.6 and 1.1.1.7, the directory is /root/.sbt/launchers/0.13.6.
    • For version 1.1.2.1, the directory is /root/.sbt/launchers/0.13.8.
    • For version 1.1.2.6, the directory is /root/.sbt/launchers/0.13.9.
  2. Manually download the JAR package in the current directory.
    1
    wget https://scala.jfrog.io/ui/native/ivy-releases/org.scala-sbt/sbt-launch/0.13.5/sbt-launch.jar
    
  3. Comment out the following code in the sbt file in the source code directory:
    1
    #-sbt-launch-repo) require_arg path "$1" "$2" && sbt_launch_repo="$2" && shift 2 ;;