Skip to content

Cannot configure "trace-output" agent option because plugins add "config-output-dir" option by default #189

@hannesd

Description

@hannesd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions