The idea behind this project is to provide V8 as a JVM Scripting Engine (aka JSR-223).
- Maven is being used for the builds using the nar-maven-plugin
- Some smaller changes in style and fixes
This is my fork from Flier Lu's project. This is a link to the original svn repository. Another interesting fork can be found here by Greg Fodor.
- Make sure you have maven 3.x and a C Compiler (gcc, mingw) installed.
- Clone into a folder the v8 project:
$ git clone git:https://github.com/v8/v8.git
- Build V8:
$ make native library=shared
- Add to your settings.xml the property v8.path (where your v8 clone is located)
...
<profiles>
<profile>
<id>default</id>
<properties>
<v8.path>/path/to/v8</v8.path>
</properties>
...
</profile>
</profiles>
...
- Run
$ mvn clean install
- Enjoy!
Currently, I have only tested this on Mac OS X but if it is not working out-of-the-box it should be no hard than to tweak a couple of the nar-maven-plugin options.
Happy hacking!