title: Import static jQuery JS file using Webjars and Spark
body: <p>I'm using Spark as framework to build a Java web server and rely on Bootstrap and jQuery for frontend. I'm using <a href="http://www.webjars.org/" rel="nofollow">Webjars</a> to bring dependencies in my <code>pom.xml</code>.</p>
  
  <p>The problem omes with importing static files. While importing Bootstrap's CSS and JS files works well, it doesn't for jQuery JS file. I import the static files using <code>staticFileLocation("/META-INF/resources");</code> and HTML header contains:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="webjars/bootstrap/3.3.6/css/bootstrap.min.css"&gt;
  &lt;script type="text/javascript" src="webjars/jquery/2.2.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="webjars/bootstrap/3.3.6/js/bootstrap.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p><code>webjars/bootstrap/3.3.6/css/bootstrap.min.css</code> and <code>webjars/bootstrap/3.3.6/js/bootstrap.min.js</code> routes work well but <code>webjars/jquery/2.2.1/jquery.min.js</code> answers 404.</p>
  
  <p>Somehow, it looks like jQuery JS file isn't present in classpath. Any clue what I'm missing ?</p>
  
  <h2>Edit:</h2>
  
  <p>The <code>pom.xml</code> dependencies are the following:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.webjars&lt;/groupId&gt;
      &lt;artifactId&gt;bootstrap&lt;/artifactId&gt;
      &lt;version&gt;3.3.6&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.webjars&lt;/groupId&gt;
      &lt;artifactId&gt;jquery&lt;/artifactId&gt;
      &lt;version&gt;2.2.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <h2>Edit 2:</h2>
  
  <p>I also call <code>staticFileLocation()</code> two times in my controller:</p>
  
  <pre><code>staticFileLocation("/static");
  staticFileLocation("/META-INF/resources");
  </code></pre>
  
  <p>The two calls seem to conflict with each other.</p>