Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6586

Allow proxy activation based on profile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.6.0
    • None
    • None

    Description

      Hello,

      In setting reference[1] it is written:

      proxies/proxy* List<Proxy> (Many) Configuration for different proxy profiles. Multiple proxy profiles might come in handy for anyone working from a notebook or other mobile platform, to enable easy switching of entire proxy configurations by simply specifying the profile id, again either from the command line or from the defaults section below.

      So it should be possible to enable/disable proxy based on a profile. However, there is no instructions of how to do that.

      Adding <active>${property}</active> automatically disables the entry, even if property is set to true, I verify this using help:effective-settings. I could not find any property that can make any difference.

      I see many people have tried and failed, and based on the above documentation it seems like either missing documentation or an actual bug.

      Please allow that, as multiple setting.xml are not supported and enable/disable proxy is required for a single CI settings.xml.

      Thanks!

       

      [1] https://maven.apache.org/ref/3.6.0/maven-settings/settings.html#settings

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alonbl Alon Bar-Lev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: