Maven plugin to execute Jasmine Specs. Creates your HTML runners for you, runs headlessly, outputs JUnit XML
Java JavaScript Other
Pull request Compare This branch is 4 commits ahead, 265 commits behind searls:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



For information on how to use jasmine-plugin, check out its documentation page.

7/31/2012 - Heads up! See below for an important note about a backwards-compatibility-breaking change in versions & later.

Current Version Info

The plugin's version numbering will mirror the version of Jasmine that backs it (with a version number tacked on at the end that tracks changes to the plugin within a Jasmine release). The latest version of the plugin points to Jasmine 1.2.0, so its version number is

If you want to point at snapshot releases of the plugin (note that I don't deploy them often), they're hosted on the Sonatype OSS snapshot repository.



Pull requests are, of course, very welcome! A few todos, if anyone is interested in tackling them:

  • JSLint and JSCoverage integration
  • Parse & format ignored tests (currently only passing & failing tests are parsed)
  • A facility that automatically executes the other goals if only test or preparePackage is configured to run.


  • Thanks to Pivotal Labs for authoring and publishing Jasmine
  • Thanks to christian.nelson and sivoh1, owners of the javascript-test-maven-plugin project, which provided a similar implementation from which to glean several valuable lessons.

Public Service Announcments

Lifecycle extensions

A change was introduced in version that will require a change to your POM file. Your POM configuration for jasmine-maven-plugin must now include a child element: <extensions>true</extensions> to work in version and later. Sorry about the inconvenience, but this was the only way to avoid each build phase from executing twice.

So, if you're arriving here from Google because you see an error like this when you run your build:

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.389s
[INFO] Finished at: Tue Jul 31 17:05:33 EDT 2012
[INFO] Final Memory: 3M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "jasmine-process-test-resources". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]

The solution is to add <extensions>true</extensions> to your POM, like this:




If you have any problems, please check the project issues.