title: SBT, Jetty and Servlet 3.0
body: <p>I have a really tiny problem.</p>
  
  <p>I have the following build.sbt file:</p>
  
  <pre><code>name := "Tueet"
  
  libraryDependencies += "org.eclipse.jetty" % "jetty-webapp" % "8.1.2.v20120308"
  </code></pre>
  
  <p>After invoking sbt update, I get the following:</p>
  
  <pre><code>[info] Set current project to Tueet (in build file:/C:/dev/tueet/)
  [info] Updating {file:/C:/dev/tueet/}default-d5e982...
  [info] Resolving org.scala-lang#scala-library;2.9.1 ...
  [info] Resolving org.eclipse.jetty#jetty-webapp;8.1.2.v20120308 ...
  [info] Resolving org.eclipse.jetty#jetty-xml;8.1.2.v20120308 ...
  [info] Resolving org.eclipse.jetty#jetty-util;8.1.2.v20120308 ...
  [info] Resolving org.eclipse.jetty#jetty-servlet;8.1.2.v20120308 ...
  [info] Resolving org.eclipse.jetty#jetty-security;8.1.2.v20120308 ...
  [info] Resolving org.eclipse.jetty#jetty-server;8.1.2.v20120308 ...
  [info] Resolving org.eclipse.jetty.orbit#javax.servlet;3.0.0.v201112011016 ...
  [info] Resolving org.eclipse.jetty#jetty-continuation;8.1.2.v20120308 ...
  [info] Resolving org.eclipse.jetty#jetty-http;8.1.2.v20120308 ...
  [info] Resolving org.eclipse.jetty#jetty-io;8.1.2.v20120308 ...
  [warn]  [NOT FOUND  ] org.eclipse.jetty.orbit#javax.servlet;3.0.0.v201112011016!javax.servlet.orbit (603ms)
  [warn] ==== public: tried
  [warn]   http://repo1.maven.org/maven2/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.orbit
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  ::              FAILED DOWNLOADS            ::
  [warn]  :: ^ see resolution messages for details  ^ ::
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  :: org.eclipse.jetty.orbit#javax.servlet;3.0.0.v201112011016!javax.servlet.orbit
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [error] {file:/C:/dev/tueet/}default-d5e982/*:update: sbt.ResolveException: download     failed: org.eclipse.jetty.orbit#javax.servlet;3.0.0.v201112011016!javax.servlet.orbit
  [error] Total time: 1 s, completed 2012-03-27 14:33:34
  </code></pre>
  
  <p>This is silly, as it works in Maven no prob. I found out that this is because Orbit does something with packaging (they set it to orbit apparently).</p>
  
  <p>I tried doing exclude("org.eclipse.jetty.orbit", "javax.servlet") but nothing happened and it still needed that dependency.</p>
  
  <p>I couldn't find any info on how to actually fix this, maybe someone will help me here :)</p>
  
  <p><strong>Update:</strong> the presented bug provides a workaround, so to fix this problem I actually changed build.sbt to</p>
  
  <pre><code>name := "Tueet"
  
  libraryDependencies += "org.eclipse.jetty" % "jetty-server" % "8.1.2.v20120308"
  
  ivyXML := 
  &lt;dependency org="org.eclipse.jetty.orbit" name="javax.servlet" rev="3.0.0.v201112011016"&gt;
  &lt;artifact name="javax.servlet" type="orbit" ext="jar"/&gt;
  &lt;/dependency&gt;
  </code></pre>