added java version so it compiles with maven < 3