title: sbt got error when run Spark hello world code?
body: <p>I got the following error when running a spark hello world program.</p>
  
  <pre>
  [info] Updating {file:/C:/Users/user1/IdeaProjects/sqlServer/}sqlserver...
  [info] Resolving org.apache.spark#spark-core_2.12;2.1.1 ...
  [warn]  module not found: org.apache.spark#spark-core_2.12;2.1.1
  [warn] ==== local: tried
  [warn]   C:\Users\user1\.ivy2\local\org.apache.spark\spark-core_2.12\2.1.1\ivys\ivy.xml
  [warn] ==== public: tried
  [warn]   https://repo1.maven.org/maven2/org/apache/spark/spark-core_2.12/2.1.1/spark-core_2.12-2.1.1.pom
  [warn] ==== local-preloaded-ivy: tried
  [warn]   C:\Users\user1\.sbt\preloaded\org.apache.spark\spark-core_2.12\2.1.1\ivys\ivy.xml
  [warn] ==== local-preloaded: tried
  [warn]   file:/C:/Users/user1/.sbt/preloaded/org/apache/spark/spark-core_2.12/2.1.1/spark-core_2.12-2.1.1.pom
  [info] Resolving jline#jline;2.14.3 ...
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  ::          UNRESOLVED DEPENDENCIES         ::
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  :: org.apache.spark#spark-core_2.12;2.1.1: not found
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]
  [warn]  Note: Unresolved dependencies path:
  [warn]          org.apache.spark:spark-core_2.12:2.1.1 (C:\Users\user1\IdeaProjects\sqlServer\build.sbt#L7-8)
  [warn]            +- mpa:mpa_2.12:1.0
  [trace] Stack trace suppressed: run last *:update for the full output.
  [error] (*:update) sbt.ResolveException: unresolved dependency: org.apache.spark#spark-core_2.12;2.1.1: not found
  [error] Total time: 1 s, completed May 9, 2017 11:05:44 AM
  </pre>
  
  <p>Here is the <strong>build.sbt</strong>,</p>
  
  <pre><code>name := "Mpa"
  version := "1.0"
  scalaVersion := "2.11.8"
  libraryDependencies += "org.apache.spark" %% "spark-core" % "2.1.1"
  </code></pre>
  
  <p>My Spark webcome message.</p>
  
  <pre>
  Welcome to
        ____              __
       / __/__  ___ _____/ /__
      _\ \/ _ \/ _ `/ __/  '_/
     /___/ .__/\_,_/_/ /_/\_\   version 2.1.1
        /_/
  
  Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_111)
  Type in expressions to have them evaluated.
  Type :help for more information.
  </pre>
  
  <p><strong>Update:</strong></p>
  
  <p>I changed the <code>built.sbt</code> to</p>
  
  <pre><code>name := "Mpa"
  version := "1.0"
  scalaVersion := "2.11.8"
  libraryDependencies += "org.apache.spark" %% "spark-core_2.11" % "2.1.0"
  </code></pre>
  
  <p>But still got</p>
  
  <pre>
  [info] Updating {file:/C:/Users/user1/IdeaProjects/sqlServer/}sqlserver...
  [info] Resolving org.apache.spark#spark-core_2.11_2.11;2.1.0 ...
  [warn]  module not found: org.apache.spark#spark-core_2.11_2.11;2.1.0
  [warn] ==== local: tried
  [warn]   C:\Users\user1\.ivy2\local\org.apache.spark\spark-core_2.11_2.11\2.1.0\ivys\ivy.xml
  [warn] ==== public: tried
  [warn]   https://repo1.maven.org/maven2/org/apache/spark/spark-core_2.11_2.11/2.1.0/spark-core_2.11_2.11-2.1.0.pom
  [warn] ==== local-preloaded-ivy: tried
  [warn]   C:\Users\user1\.sbt\preloaded\org.apache.spark\spark-core_2.11_2.11\2.1.0\ivys\ivy.xml
  [warn] ==== local-preloaded: tried
  [warn]   file:/C:/Users/user1/.sbt/preloaded/org/apache/spark/spark-core_2.11_2.11/2.1.0/spark-core_2.11_2.11-2.1.0.pom
  [info] Resolving jline#jline;2.12.1 ...
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  ::          UNRESOLVED DEPENDENCIES         ::
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  :: org.apache.spark#spark-core_2.11_2.11;2.1.0: not found
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]
  [warn]  Note: Unresolved dependencies path:
  [warn]          org.apache.spark:spark-core_2.11_2.11:2.1.0 (C:\Users\user1\IdeaProjects\sqlServer\build.sbt#L7-8)
  [warn]            +- mpa:mpa_2.11:1.0
  [trace] Stack trace suppressed: run last *:update for the full output.
  [error] (*:update) sbt.ResolveException: unresolved dependency: org.apache.spark#spark-core_2.11_2.11;2.1.0: not found
  [error] Total time: 1 s, completed May 9, 2017 1:01:01 PM
  </pre>