Use enforcer plugin to check java and maven versions