diff --git a/java/rocksjni.pom b/java/rocksjni.pom
index 69e124c48..242674e3d 100644
--- a/java/rocksjni.pom
+++ b/java/rocksjni.pom
@@ -38,87 +38,29 @@
+ 1.7
+ 1.7
UTF-8
-
-
- ${project.basedir}
-
-
-
- ${project.basedir}
-
- **/*
-
-
-
-
- ${project.basedir}
-
-
-
- ${project.basedir}
-
- *.so
- *.jar
- *.jnilib
-
-
-
org.apache.maven.plugins
maven-compiler-plugin
2.0.2
-
- 1.7
-
-
-
- *.java
-
- org/rocksdb/benchmark/*.java
-
- org/rocksdb/test/*.java
- org/rocksdb/WriteBatchTest.java
-
+
+ ${project.build.target}
+ ${project.build.sourceEncoding}
-
-
- default-testCompile
- test-compile
-
-
-
-
- %regex[org/rocksdb/[^WriteBatchTest].*java]
-
- *.java
-
- org/rocksdb/benchmark/*.java
-
- org/rocksdb/util/*.java
-
-
-
- org/rocksdb/test/*.java
-
-
-
- testCompile
-
-
-
org.apache.maven.plugins
maven-surefire-plugin
2.17
- ${argLine} -Xcheck:jni
+ -ea -Xcheck:jni -Djava.library.path=${project.build.directory}