klieber/phantomjs-maven-plugin — pull request #4 by klieber (2013-12-16 02:49:26+00:00)
Title: Add exec goal

Add a simple goal for executing phantomjs after it has been downloaded. While in general this plugin was meant to be used in conjunction with other plugins and tools, this seems like a simple enough feature to add so I think it should be added.

The following example would download phantomjs 1.9.2 and then execute `phantomjs --load-images=false src/main/javascript/example.js arg1 arg2`:

```xml

com.github.klieber
phantomjs-maven-plugin
${phantomjs-maven-plugin.version}

install
exec

1.9.2
--load-images=false

arg1
arg2

```

We should probably also support a parameter for specifying a config file instead of using the `commandLineOptions` parameter:

```xml

com.github.klieber
phantomjs-maven-plugin
${phantomjs-maven-plugin.version}

install
exec

1.9.2
src/main/config/config.js

arg1
arg2

```
For reference, here is the documentation on the [phantomjs command line options](https://github.com/ariya/phantomjs/wiki/API-Reference#command-line-options).

Will probably also want to review the parameters in the exec goal of the [exec-maven-plugin](http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html) for some other possible parameters.