Interesting thought. There can be only one `goals` element in the XML. All calls to goals could be joined to one string. Example: `goals("clean")` and `goals("install")` could produce `<goals>clean install</goals>`. But what if a template already defines some goals? Should the goals be appended to the ones defined in the template or should they replace the goals in the template?

The same could be applied to mavenOpts.