Most people use invoker to run integration tests of their maven plugins.

As such, when running integration tests, you typically will have a
test settings.xml so that the test environment will be constant.

There is the issue of when you are behind a proxy, to solve this issue
(as sometimes you need absolute control over the test env settings)
there is mrm-maven-plugin @ mojo, that fires up a local Mock
Repository Manager which will use your settings.xml to retrieve
artifacts not available in your local repository so that the invoker
based tests can still have the required environment, but work behind a
proxy.

What is your use-case?

On 16 January 2012 08:43, Asmann, Roland <[email protected]> wrote:
> Hi all,
>
> When running my projects on Jenkins, I need to set the settings-file (-s
> /path/to/settings.xml). I've hit my toes a couple of times now on the
> fact that I than also have to set the settings-file for the
> invoker-plugin (-Dinvoker.settingsFile=/path/to/settings.xml).
>
> Why doesn't the invoker use the file that was given with -s? I can
> understand that it takes the default settings when no configuration is
> give, but having the plugin actually use a different settings-file when
> running Maven with an explicit settings-file is kind of weird.
>
> Anyway, is there a way to get the invoker-plugin to use the
> settings-file that I set at the command-line?
>
> Thanks,
>
> --
> Roland Asmann
> Senior Software Engineer
>
> adesso Austria GmbH
> Floridotower 26. Stock              T +43 1 2198790-27
> Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
> A-1210 Wien                         M +43 664 88657566
>                                    E [email protected]
>                                    W www.adesso.at
>
> -------------------------------------------------------------
>             >>> business. people. technology. <<<
> -------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to