Refine maven configuration