Maven build uses java8

Changed to use java8