I am trying to work on an sbt project offline (again). Everything seems to be in order, but there are strange things that I am confusing. Here is what I notice:
I created an empty sbt project and consider the following dependencies in the build.sbt file:
name := "sbtSand"
version := "1.0"
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
"joda-time" % "joda-time" % "2.9.1",
"org.apache.spark" %% "spark-core" % "1.5.2"
)
I built the project online and see all the packages in [userhome] /. ivy2 / cache. The project is being built perfectly. Then I turn off Wi-Fi, sbt clean and try to build. Build failed. I will comment on the dependence on the spark (saving the same time). Still offline, I am running sbt compile. The project is being built perfectly. I turned on the spark addiction again and cleaned it. This again fails to build. I'm coming back online. I can build again.
sbt : https://gist.github.com/ashic/9e5ebc39ff4eb8c41ffb
:
[info] Resolving org.apache.hadoop#hadoop-mapreduce-client-app;2.2.0 ...
[warn] Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-mapreduce-client-app/2.2.0/hadoop-mapreduce-client-app-2.2.0.pom
[info] You probably access the destination server through a proxy server that is not well configured.
, sbt joda- , (, , ) . -, , , , ?