fixing maven WARN - deprecated usage