Skip to content

Is there any way to use the current settings.xml used by main Maven process ? #471

Open
@fmarot

Description

@fmarot

In my CI, the settings.xml file is located 'somewhere' that I know only at runtime in an env variable. So all my Maven builds are run with this parameter:

-settings ${MAVEN_SETTINGS_XML}

The tests using @maventest seem to inherit the default settings.xml of Maven because they can seem to find dependencies located in my company's private repository.

1- I would have expected the tests to inherit by default from the main Maven process' settings.xml. It does not seem to be the case.
2- is there a workaround ? I tried the following but it does not work:

@MavenOption(value = "--settings", parameter = "${MAVEN_SETTINGS_XML}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions