diff --git a/install-optimized.bat b/install-optimized.bat
new file mode 100644
index 0000000..9cfd6e1
--- /dev/null
+++ b/install-optimized.bat
@@ -0,0 +1,3 @@
+node src/lib/r.js -o src/resthub.build.js
+cp target/minified/lib/resthub.js src/lib/resthub.min.js
+mvn install
\ No newline at end of file
diff --git a/optimize.bat b/optimize.bat
deleted file mode 100644
index 893bfe2..0000000
--- a/optimize.bat
+++ /dev/null
@@ -1,2 +0,0 @@
-node src/lib/r.js -o src/resthub.build.js
-cp target/minified/lib/resthub.js src/lib/resthub.min.js
\ No newline at end of file
diff --git a/optimize.sh b/optimize.sh
deleted file mode 100644
index 9a88c34..0000000
--- a/optimize.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-node src/lib/r.js -o src/resthub.build.js
-cp target/minified/lib/resthub.js src/lib/resthub.min.js
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 305cda0..f3b03c7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
false
${basedir}/src
- documentation/**,test/**,WEB-INF/**,META-INF/**
+ documentation/**,test/**,WEB-INF/**,META-INF/**,src/resthub.build.js