diff --git a/build.xml b/build.xml
index bd62cc17..686e0216 100644
--- a/build.xml
+++ b/build.xml
@@ -176,7 +176,18 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/maven/pom.xml b/examples/maven/pom.xml
new file mode 100644
index 00000000..3c395040
--- /dev/null
+++ b/examples/maven/pom.xml
@@ -0,0 +1,23 @@
+
+ 4.0.0
+ acme
+ maven-example
+ jar
+ 1.0-SNAPSHOT
+ maven-example
+ http://maven.apache.org
+
+
+ org.luaj
+ luaj-jse
+ 3.0-alpha3
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+
diff --git a/examples/maven/src/main/java/acme/App.java b/examples/maven/src/main/java/acme/App.java
new file mode 100644
index 00000000..a0b0deb5
--- /dev/null
+++ b/examples/maven/src/main/java/acme/App.java
@@ -0,0 +1,25 @@
+package acme;
+
+import org.luaj.vm2.Globals;
+import org.luaj.vm2.LuaValue;
+import org.luaj.vm2.lib.jse.JsePlatform;
+
+/**
+ * Sample source file for a maven project that depends on luaj.
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ String script = "print 'hello, from luaj!'";
+
+ // create an environment to run in
+ Globals globals = JsePlatform.standardGlobals();
+
+ // Use the convenience function on the globals to load a chunk.
+ LuaValue chunk = globals.loadString(script, "maven-exmaple");
+
+ // Use any of the "call()" or "invoke()" functions directly on the chunk.
+ chunk.call();
+ }
+}
diff --git a/examples/maven/src/test/java/acme/AppTest.java b/examples/maven/src/test/java/acme/AppTest.java
new file mode 100644
index 00000000..b5546043
--- /dev/null
+++ b/examples/maven/src/test/java/acme/AppTest.java
@@ -0,0 +1,24 @@
+package acme;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Skeleton unit test for App, required for maven to be used to build the app.
+ */
+public class AppTest
+ extends TestCase
+{
+ public AppTest( String testName ) {
+ super( testName );
+ }
+
+ public static Test suite() {
+ return new TestSuite( AppTest.class );
+ }
+
+ public void testAppCanBeExecuted() {
+ App.main(new String[0]);
+ }
+}