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

cli parameter to use a custom path settings-security.xml

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.4, 3.0.5
    • 4.x / Backlog
    • Command Line
    • None
    • Patch

    Description

      added -ssec as cli param, so that you have the same flexibility to place your settings-security.xml as you have to point to a custom settings.xml file

      mvn -s /path/to/my/custom/settings.xml -ssec /path/to/my/custom/settings-security.xml

      I attached to patches: one that can be run on the maven-3.0.4 tag and one that can be run on trunk (latest code state of today).
      I also attached a maven-3.0.4-bin.zip (linux) so you can quickly try out the feature and test it yourself.

      if you like the idea, I would welcome to have this feature merged into one of the next releases. I need it to write a puppet-maven module that allows to download artifacts from maven repositories with encrypted passwords in the puppet recipe.

      Attachments

        1. apache-maven-3.0.4-ssec-bin.tar.gz
          4.64 MB
          Sarah Haselbauer
        2. apache-maven-3.0.4-ssec-bin.zip
          4.66 MB
          Sarah Haselbauer
        3. maven-3.0.4-0001-added-ssec-as-cli-param-so-that-you-have-the-same-fl.patch
          3 kB
          Sarah Haselbauer
        4. maven-latest-0001-added-ssec-as-cli-param-so-that-you-have-the-same-fl.patch
          3 kB
          Sarah Haselbauer
        5. MNG-5438-maven-embedder.patch
          1 kB
          Paul Landolt

        Issue Links

          Activity

            People

              Unassigned Unassigned
              saheba Sarah Haselbauer
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: