diff --git a/.travis.yml b/.travis.yml
index 083a4948bfcbbb6248f96a601c1d9c6ac16d396b..94eba7531e4a1d514bd4582340aee0f27f78185b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -95,7 +95,7 @@ install: true
 before_script:
   - if [ "$BINDINGS" == "php" ]; then phpenv config-add src/bindings/php/hammer.ini; fi
 script: 
-  - if [ "$BINDINGS" == "java" ]; then sudo scons bindings=$BINDINGS test; else scons bindings=$BINDINGS test; fi
+  - if [ "$BINDINGS" == "java" ]; then mvn install -P linux; else scons bindings=$BINDINGS test; fi
 notifications:
   irc: 
     channels: