diff --git a/.gitignore b/.gitignore
index 6f3894d06..c14aad97b 100755
--- a/.gitignore
+++ b/.gitignore
@@ -55,9 +55,10 @@ build/Xcode/FlatBuffers.xcodeproj/xcuserdata/**
FlatBuffers.xcodeproj/
java/.idea
java/*.iml
-java/target
-**/*.pyc
.idea
+*.iml
+target
+**/*.pyc
build/VS2010/FlatBuffers.sdf
build/VS2010/FlatBuffers.opensdf
build/VS2010/ipch/**/*.ipch
diff --git a/java/pom.xml b/pom.xml
similarity index 89%
rename from java/pom.xml
rename to pom.xml
index dd92b9d55..8e32feec3 100644
--- a/java/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.google.flatbuffers
flatbuffers-java
1.3.0-SNAPSHOT
- jar
+ bundle
FlatBuffers Java API
Memory Efficient Serialization Library
@@ -33,7 +33,7 @@
- ./
+ java
maven-compiler-plugin
@@ -78,6 +78,12 @@
+
+ org.apache.felix
+ maven-bundle-plugin
+ 3.0.1
+ true
+