Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-11818

Repository Configurator Wizard deletes existing comments when updating the user settings.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 3.3.0.CR1
    • 3.3.0.CR1
    • maven
    • None
    • Hide
      • add some comments to your <user>/.m2/settings.xml file (there should be plenty of them already)
      • Window > Preferences > JBoss Tools > JBoss Maven Integration
      • click on "Configure Maven Repositories ..."
      • click on "Recognize JBoss Maven Enterprise Repositories"
      • select one of the Available repositories, click add
      • click finish
        ASSERT selected repository should be appended to the existing settings.xml, leaving the rest untouched
        => FAIL : while the repository is added to settings.xml, all existing comments have been purged
      Show
      add some comments to your <user>/.m2/settings.xml file (there should be plenty of them already) Window > Preferences > JBoss Tools > JBoss Maven Integration click on "Configure Maven Repositories ..." click on "Recognize JBoss Maven Enterprise Repositories" select one of the Available repositories, click add click finish ASSERT selected repository should be appended to the existing settings.xml, leaving the rest untouched => FAIL : while the repository is added to settings.xml, all existing comments have been purged

      After adding a maven repo via the Repository Configurator wizard, my settings.xml is cleansed of all comments, as the updated maven Settings model is serialized directly to file, overwriting the existing settings.xml. I lost some important stuff that was commented in that file.

            snjeza_jira Snjezana Peco (Inactive)
            fbricon@redhat.com Fred Bricon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: