Build and test java decoder with Maven

diff --git a/.travis.sh b/.travis.sh
index cb174c5..408b6fd 100755
--- a/.travis.sh
+++ b/.travis.sh
@@ -48,6 +48,10 @@
 		fi
 		python setup.py build test
 		;;
+	    "maven")
+		cd java/org/brotli
+		mvn install && cd integration && mvn verify
+		;;
 	esac
 	;;
     "after_success")
diff --git a/.travis.yml b/.travis.yml
index da4ca63..4f61c26 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -223,6 +223,10 @@
           - cmake
           - cmake-data
 
+    - os: linux
+      env: BUILD_SYSTEM=maven
+      language: java
+
 before_install:
 ###
 ## If we use the matrix to set CC/CXX Travis, overwrites the values,