Fail gem install if maven fails

Change-Id: I98cc149574f93bd215af43a76cb09def2b82808a