You should look at being able to call mavenOpts multiple times. Look at the docs for the ant command, for an example. The key is to build up a data structure, then when outputting you use that data structure. Since it's backwards compatible to only support one, then add in support for multiple calls later, you could just create an GH Issue to follow up with this kind of feature later.