specify java version and encoding while using maven