allow to call goals and mavenOpts multiple times, better parameters names, added template test