Maven 2.x Invoker Plugin

Add possibility to inherit settings.xml from calling process

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.4
  • Fix Version/s: 1.6
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Invoker will use default settings xml even if differetn settings xml is specified in calling maven process. It would be very usefull to add posibility to "inherit" settings.xml to invoker:run goal (settingsFile parameter is not enough, since it seems imposible to determine settings file from in calling maven process)

Issue Links

Activity

Hide
Olivier Lamy added a comment -

so we have to merge 2 settings file. Which one is the dominant ?

Show
Olivier Lamy added a comment - so we have to merge 2 settings file. Which one is the dominant ?
Hide
Konstantin Titorenko added a comment -

Don't think that any kind of merge is required, what is needed is ability to use same settings.xml that was used by caller process.
For example, if you run maven if -s key it is not really logical for invoker to ignore that setting.
One possibility would be to add a parameter to run goal of invoker, e.g. inheritSettingsXml=true/false, then in case of true use settings.xml from caller process, current behavior otherwise.

Show
Konstantin Titorenko added a comment - Don't think that any kind of merge is required, what is needed is ability to use same settings.xml that was used by caller process. For example, if you run maven if -s key it is not really logical for invoker to ignore that setting. One possibility would be to add a parameter to run goal of invoker, e.g. inheritSettingsXml=true/false, then in case of true use settings.xml from caller process, current behavior otherwise.
Hide
Julien Nicoulaud added a comment -

As Konstantin said, you could add an 'inheritSettings' parameter, but the 'settingsFile' would still be loaded and add/override what it needs to.

This way we would inherit the proxies section and still use the "fast build" configuration.

Show
Julien Nicoulaud added a comment - As Konstantin said, you could add an 'inheritSettings' parameter, but the 'settingsFile' would still be loaded and add/override what it needs to. This way we would inherit the proxies section and still use the "fast build" configuration.

People

Vote (3)
Watch (3)

Dates

  • Created:
    Updated: