Maven
  1. Maven
  2. MNG-3525

Settings.xml allowing mirror definitions inside profiles

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.9
    • Component/s: Profiles
    • Labels:
      None
    • Environment:
      N/A

      Description

      I currently use Maven in 2 places
      1. At work
      2. Not at work

      At work we have a repository manager thus we have mirror properties in the settings.xml for the whole teams global settings. We also have a defined a number of repositories in our work profile so we can mirror these to different repo's managed by Archiva. Now when I work from home I have to comment out the mirror definitions and activate a home profile which does not define any repos so Maven just goes out to the WWW as normal. So the pain is having to comment out and un-comment the mirror settings every time I go from work to home and visa-versa.

      Can we not have the option to add mirrors inside profiles?

        Issue Links

          Activity

          Hide
          Rob Evans added a comment -

          Could profiles help?

          Show
          Rob Evans added a comment - Could profiles help?
          Hide
          olle added a comment -

          I solve this issue with a Groovy script to flip a lot of settings on SuSE laptop.

          This actually might be solved with a nice small maven plugin to activate/disactive profiles in settings.xml

          Show
          olle added a comment - I solve this issue with a Groovy script to flip a lot of settings on SuSE laptop. This actually might be solved with a nice small maven plugin to activate/disactive profiles in settings.xml
          Hide
          Paul Gribben added a comment -

          Rob - Profiles would help if the settings xml schema allowed mirrors in profiles but it does not. That is exactly my issue.

          Oleg - What sort of things do you use you groovy script for?

          Show
          Paul Gribben added a comment - Rob - Profiles would help if the settings xml schema allowed mirrors in profiles but it does not. That is exactly my issue. Oleg - What sort of things do you use you groovy script for?
          Hide
          Brian E. Fox added a comment -

          This is definitely a requirement for 2.1 IMO, but it can't happen on 2.0.x.

          Show
          Brian E. Fox added a comment - This is definitely a requirement for 2.1 IMO, but it can't happen on 2.0.x.
          Hide
          David J. M. Karlsen added a comment -

          This would most definately be useful for ppl going in and out of different environments.
          Can it be resceduled for 2.1.x?

          Show
          David J. M. Karlsen added a comment - This would most definately be useful for ppl going in and out of different environments. Can it be resceduled for 2.1.x?
          Hide
          Brian E. Fox added a comment -

          2.1 can't handle a model change yet so most likely no for 2.x

          Show
          Brian E. Fox added a comment - 2.1 can't handle a model change yet so most likely no for 2.x
          Hide
          Frank Jakop added a comment -

          Well, 3.x is out in the field for quite a while. We would appreciate this feature very much.

          Show
          Frank Jakop added a comment - Well, 3.x is out in the field for quite a while. We would appreciate this feature very much.
          Hide
          Christoffer Soop added a comment -

          Ditto - please implement this feature ASAP!

          You should also add support for adding proxies to profiles.

          Show
          Christoffer Soop added a comment - Ditto - please implement this feature ASAP! You should also add support for adding proxies to profiles.
          Hide
          marian added a comment -

          Very useful option...

          Show
          marian added a comment - Very useful option...
          Hide
          Radim Kubacki added a comment -

          Same problem: set of project at work using central through local Nexus and another set of project mirroring through another repository.

          Show
          Radim Kubacki added a comment - Same problem: set of project at work using central through local Nexus and another set of project mirroring through another repository.
          Hide
          dmas added a comment -

          Need the same to have home and work enviroments operative.

          Show
          dmas added a comment - Need the same to have home and work enviroments operative.
          Hide
          Oliver B. Fischer added a comment -

          Same problem here.

          Show
          Oliver B. Fischer added a comment - Same problem here.
          Hide
          Christian Lipphardt (camunda) added a comment -

          I would really appreciate if this would be possible.
          The usecase is working in the office with a mirror (eg. inhouse) and working somewhere else using another mirror (datacenter).

          Show
          Christian Lipphardt (camunda) added a comment - I would really appreciate if this would be possible. The usecase is working in the office with a mirror (eg. inhouse) and working somewhere else using another mirror (datacenter).
          Hide
          Edoardo Causarano added a comment -

          Definitely an improvement that would make great sense as well as adding proxies (as also mentioned in a previous comment.)

          Show
          Edoardo Causarano added a comment - Definitely an improvement that would make great sense as well as adding proxies (as also mentioned in a previous comment.)

            People

            • Assignee:
              Unassigned
              Reporter:
              Paul Gribben
            • Votes:
              30 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

              • Created:
                Updated:

                Development