title: How to set up JASMINE using MAVEN-PLUGIN?
body: <p>I have a folder structure like</p>
  
  <pre><code>-root
     -pom.xml
     -service
     -web
        -pom.xml
        -src
           -main
           -test
              -java
              -javascript
                    -lib
                    -specRunner.js
                    -runner.html
                    -spec
                       -model
                       -view
                       -collection
  </code></pre>
  
  <p>I have written JASMINE test cases in the "spec" folder containing "model","views","collections".</p>
  
  <p>I'm able to see my test results in runner.html.</p>
  
  <p>Now i'm trying to integrate with MAVEN build. SO followed steps given in <a href="http://searls.github.io/jasmine-maven-plugin" rel="nofollow">http://searls.github.io/jasmine-maven-plugin</a></p>
  
  <p>But i'm getting build failure when doing mvn clean install and unable to see anything on localhost:8234 when doing mvn jasmine:bdd</p>
  
  <p>I'm unable to find out what went wrong. The errors in console show something about require js.</p>
  
  <p>Following is my POM.xml for jasmine-maven plugin</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.3.1.5&lt;/version&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/js&lt;/jsSrcDir&gt;
                  &lt;jsTestSrcDir&gt;${project.basedir}/src/test/javascript&lt;/jsTestSrcDir&gt;
                  &lt;specRunnerTemplate&gt;REQUIRE_JS&lt;/specRunnerTemplate&gt;
                  &lt;preloadSources&gt;
                      &lt;source&gt;${project.basedir}/src/main/webapp/js/libs/require.js&lt;/source&gt;
                  &lt;/preloadSources&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>Can anybody guide what is wrong or better provide some demo project (Backbone+Require+Jasmine) which is integrated with MAVEN build.</p>
  
  <p>Thanks in Advance.</p>
  
  <p>I read some blogs and tried editing my jasmine-maven plugin as follows</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.3.1.5&lt;/version&gt;
             &lt;executions&gt;
                 &lt;execution&gt;
                     &lt;goals&gt;
                        &lt;goal&gt;test&lt;/goal&gt;
                     &lt;/goals&gt;
                  &lt;configuration&gt;
                      &lt;debug&gt;true&lt;/debug&gt;
                      &lt;specRunnerTemplate&gt;REQUIRE_JS&lt;/specRunnerTemplate&gt;
                      &lt;sourceExcludes&gt;
                          &lt;exclude&gt;lib/jasmine.js&lt;/exclude&gt;
                          &lt;exclude&gt;lib/jasmine-html.js&lt;/exclude&gt;
                          &lt;!--&lt;exclude&gt;libs/text.js&lt;/exclude&gt;--&gt;
                      &lt;/sourceExcludes&gt;
  
                      &lt;preloadSources&gt;
                          &lt;source&gt;${basedir}/src/main/webapp/js/libs/require.js&lt;/source&gt;
                          &lt;source&gt;${basedir}/src/main/webapp/js/main.js&lt;/source&gt;
  
                      &lt;/preloadSources&gt;
  
                      &lt;jsSrcDir&gt;${basedir}/src/main/webapp/js&lt;/jsSrcDir&gt;
                      &lt;sourceIncludes&gt;
                      &lt;include&gt;${basedir}/src/main/webapp/jslibs/*.js&lt;/include&gt;
                      &lt;!--&lt;include&gt;libs/jquery-1.9.1.js&lt;/include&gt;
                          &lt;include&gt;libs/underscore-min.js&lt;/include&gt;
                          &lt;include&gt;libs/backbone-min.js&lt;/include&gt;
                          &lt;include&gt;libs/text.js&lt;/include&gt;--&gt;
                          &lt;!--&lt;include&gt;../templates/*.tmpl&lt;/include&gt;--&gt;
  
                      &lt;/sourceIncludes&gt; 
                      &lt;haltOnFailure&gt;true&lt;/haltOnFailure&gt;
                      &lt;jsTestSrcDir&gt;${basedir}/src/test/javascript&lt;/jsTestSrcDir&gt;
                      &lt;serverPort&gt;8234&lt;/serverPort&gt;
  
                      &lt;specIncludes&gt;
                          &lt;include&gt;spec/**/*.js&lt;/include&gt; 
                      &lt;/specIncludes&gt;
                      &lt;!--&lt;specRunnerHtmlFileName&gt;runner.html&lt;/specRunnerHtmlFileName&gt;--&gt;
                  &lt;/configuration&gt;
                 &lt;/execution&gt;
             &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>Now i'm able to check the JASMINE specs in the console while mvn clean install as follows-</p>
  
  <p>Caused by: net.sourceforge.htmlunit.corejs.javascript.JavaScriptException: Error: src/views/../../templates/menu.tmpl HTTP status: 404 </p>
  
  <p>I'm getting errors on template files (exceptions) not sure what this is about.</p>
  
  <p>Any help on this?</p>
  
  <p>Thanks.</p>