title: SBT fails to resolve dependency for jersey-container-grizzly2-http 2.5.1
body: <p>I am fairly new to Scala and SBT. I would like to implement a REST server using Jersey JAX-RS and Scala, but have faced the first hurdle trying to configure SBT. I was planning to use the Grizzly HTTP Server. The <code>build.sbt</code> is as follows:</p>
  
  <pre><code>name := "scala-jersey-server"
  
  version := "1.0"
  
  scalaVersion := "2.10.3"
  
  libraryDependencies += "org.glassfish.jersey.containers" % "jersey-container-grizzly2-http" % "2.5.1"
  </code></pre>
  
  <p>Running sbt update fails with the following messages</p>
  
  <pre><code>[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  ::          UNRESOLVED DEPENDENCIES         ::
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  :: org.glassfish.hk2#hk2-utils;2.5.1: not found
  [warn]  :: org.glassfish.hk2#hk2-locator;2.5.1: not found
  [warn]  :: javax.validation#validation-api;${javax.validation.version}: not found
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  </code></pre>
  
  <p>Looking at the <code>pom.xml</code> for <code>hk2-api</code>, it shows dependency on <code>hk2-utils</code> using the <code>${project.version}</code> variable, but I'd have expected version 2.2.0-b21 of <code>hk2-utils</code> to be requested by SBT not 2.5.1 (which is JAX-RS version).</p>
  
  <pre><code>&lt;dependency&gt;
     &lt;groupId&gt;org.glassfish.hk2&lt;/groupId&gt;
     &lt;artifactId&gt;hk2-utils&lt;/artifactId&gt; 
     &lt;version&gt;${project.version}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Is this a problem with the configuration of hk2-api's pom.xml, is SBT using an incorrect version or something else?</p>