refacto as maven