title: Jasmine Maven Plugin including my scripts using file protocol
body: <p>I'm trying to add javascript unit testing to our project and found out about the <a href="http://searls.github.com/jasmine-maven-plugin/" rel="noreferrer">Jasmine Maven Plugin</a>. I followed the directions and ended up with this in my pom.xml:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;com.github.searls&lt;/groupId&gt;
      &lt;artifactId&gt;jasmine-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.2.0.0&lt;/version&gt;
      &lt;extensions&gt;true&lt;/extensions&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;goals&gt;
                  &lt;goal&gt;test&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;configuration&gt;
          &lt;jsSrcDir&gt;${project.basedir}/src/main/webapp/resources/js&lt;/jsSrcDir&gt;
          &lt;jsTestSrcDir&gt;${project.basedir}/src/test/javascript&lt;/jsTestSrcDir&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I run <code>mvn jasmine:bdd</code> and get the expected output. I then go to <code>http://localhost:8234</code> and all I get is a blank screen. I look in the console and see this for each of my js files:</p>
  
  <pre><code>Not allowed to load local resource: file:///absolute/path/to/the/js/src/main/webapp/resources/js/myJS.js
  </code></pre>
  
  <p>The HTML for the page is including my scripts like this:</p>
  
  <pre><code>&lt;script type="text/javascript" src="file:/absolute/path/to/the/js/src/main/webapp/resources/js/myJS.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>So my question is, why is the plugin using the file protocol to inculde the js? Is this how it usually works? If so, how do I get my browser to allow the local resource? Is there any way to prevent it from doing this?</p>
  
  <p>Just in case it matters, I tried this with both Firefox and Chrome, and I am using OS X. </p>