Using the following in the maven plugin's <configuration> section:
<agent>
<options>
<option>trace-output=${basedir}/trace-output.json</option>
</options>
</agent>
causes mvn test to fail with the following message:
native-image-agent: can only once specify exactly one of trace-output=, config-output-dir= or config-merge-dir=.
Looking at the sources of the maven plugin it appears that the plugin explicitly forbids adding the config-output-dir but also does not allow me to remove it. I suggest to allow overriding the config-output-dir option by the user and not adding the config-output-dir option by default when one of the other options is present.