Open GoogleCodeExporter opened 8 years ago
I'm not sure what the failure was, but I suspect you didn't change the
phantomJsExec to point to your local copy of phantomjs. For example, I
downloaded phantomjs from the website:
http://phantomjs.org/
Get the version you need and extract it. Wherever you extract it, there will
be a file under extracted folder, "bin/phantomjs". This is the path you need
to put in for:
<phantomJsExec>/path/to/phantomjs</phantomJsExec>
Since this plugin requires a 3rd party executable, you have to tell it where to
find that executable. I like to put something like this in:
~/.m2/settings.xml:
<settings>
<profiles>
<profile>
[...]
<properties>
<phantomjs.bin>[path to phantomjs]</phantomjs.bin>
</properties>
</profile>
[...]
</profiles>
</settings>
the [...] are where I have other stuff I've removed for brevity. The [path of
phantomjs] is the path I mentioned earlier. Make sure this is part of your
active profile. Then inside of the pom, I put:
<phantomJsExec>${phantomjs.bin}</phantomJsExec>
This way other users can change the setting in their local settings file.
Original comment by br...@newtonius.com
on 28 May 2012 at 9:54
You can also pass in that property on the command line:
$ mvn -Dphantomjs.bin=/path/to/bin/phantomjs install
Original comment by br...@newtonius.com
on 29 May 2012 at 1:25
Original issue reported on code.google.com by
peter.ah...@gmail.com
on 9 Mar 2012 at 9:19