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:
- Go to the /root/.sbt/launchers/0.13.5 directory.
1cd /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.
- Manually download the JAR package in the current directory.
1wget https://scala.jfrog.io/ui/native/ivy-releases/org.scala-sbt/sbt-launch/0.13.5/sbt-launch.jar
- Download versions 1.1.1.6 and 1.1.1.7 from https://scala.jfrog.io/ui/native/ivy-releases/org.scala-sbt/sbt-launch/0.13.6/sbt-launch.jar.
- Download version 1.1.2.1 from https://scala.jfrog.io/ui/native/ivy-releases/org.scala-sbt/sbt-launch/0.13.8/sbt-launch.jar.
- Download version 1.1.2.6 from https://scala.jfrog.io/ui/native/ivy-releases/org.scala-sbt/sbt-launch/0.13.9/sbt-launch.jar.
- 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 ;;
Parent topic: Rectifying Faults