title: Unable to execute Spray Examples | Maven dependency error
body: <p>I am just trying to have hands on Spray library however am not able to execute its examples due to maven dependency. </p>
  
  <p>As provided in docs I have defined Spray repository as follows:</p>
  
  <pre><code>&lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;sprayrepo&lt;/id&gt;
              &lt;name&gt;spray repo&lt;/name&gt;
              &lt;url&gt;http://repo.spray.io/&lt;/url&gt;
              &lt;layout&gt;default&lt;/layout&gt;
          &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p>Then I have defined its dependency as follows:</p>
  
  <pre><code>  &lt;dependency&gt;
              &lt;groupId&gt;io.spray&lt;/groupId&gt;
              &lt;artifactId&gt;spray-http&lt;/artifactId&gt;
              &lt;version&gt;1.1-M7&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.spray&lt;/groupId&gt;
              &lt;artifactId&gt;spray-httpx&lt;/artifactId&gt;
              &lt;version&gt;1.1-M7&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.spray&lt;/groupId&gt;
              &lt;artifactId&gt;spray-util&lt;/artifactId&gt;
              &lt;version&gt;1.1-M7&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.chuusai&lt;/groupId&gt;
              &lt;artifactId&gt;shapeless_2.9.2&lt;/artifactId&gt;
              &lt;version&gt;1.2.0&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;  
  </code></pre>
  
  <p>However when I try to execute to maven install, I face following error:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal on project spray-test1: Could not
    resolve dependencies for project
    org.spray:spray-test1:jar:1.0-SNAPSHOT: Failed to collect dependencies
    for [io.spray:spray-http:jar:1.1-M7 (compile),
    io.spray:spray-httpx:jar:1.1-M7 (compile),
    io.spray:spray-util:jar:1.1-M7 (compile),
    com.chuusai:shapeless_2.9.2:jar:1.2.0 (compile)]: Failed to read
    artifact descriptor for io.spray:spray-http:jar:1.1-M7: Could not
    transfer artifact io.spray:spray-http:pom:1.1-M7 from/to sprayrepo
    (<a href="http://repo.spray.io/" rel="nofollow">http://repo.spray.io/</a>): connection timed out to
    <a href="http://repo.spray.io/io/spray/spray-http/1.1-M7/spray-http-1.1-M7.pom" rel="nofollow">http://repo.spray.io/io/spray/spray-http/1.1-M7/spray-http-1.1-M7.pom</a>
    -> [Help 1] [ERROR]</p>
  </blockquote>
  
  <p>Any Pointers or suggestions will be highly appreciated.</p>
  
  <p>Thanks</p>