maven-it-extension
maven-it-extension copied to clipboard
Is there any way to use the current settings.xml used by main Maven process ?
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}")