searls/jasmine-maven-plugin — pull request #54 by dfreeman (2012-01-10 00:28:07+00:00)
Title: Stop jasmine:test from re-executing build phases

With the current setup in TestMojo.java and lifecycle.xml, every build phase prior to test will be executed twice: once as part of the normal build lifecycle and again due to the `@execute` in TestMojo.

This happens because the definition in lifecycle.xml simply layers an additional mapping over the default lifecycle. This change instead declares a parallel (pristine) Jasmine lifecycle that will execute in its place. Based on commit messages, it looks as though that may have been your original goal?

Note that this change will require `true` in the `` declaration in a client project, because Maven will not look for additional lifecycle definitions in a plugin by default. This seems preferable to me, though, over having the build basically run twice prior to testing.