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

MAVENPROJECT: getActiveProfiles() returning duplicate activeByDefault profile defined in LOCAL_HOME/.m2/settings.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.7
    • 3.0-alpha-3
    • Profiles
    • None

    Description

      MavenProject:getActiveProfiles() is returning duplicate activeByDefault profiles defined in LOCAL_HOME/.m2/settings.xml.

      Attached settings.xml resides in LOCAL_HOME/.m2.

      Below is part of the output of a buildInformation plugin i am writing, which shows profile WLS8 twice.

      <activeProfiles>
      <activeProfile>
      <profileId>default-repositories</profileId>
      <profileSource>settings.xml</profileSource>
      </activeProfile>
      <activeProfile>
      <profileId>WLS8</profileId>
      <profileSource>settings.xml</profileSource>
      </activeProfile>
      <activeProfile>
      <profileId>WLS8</profileId>
      <profileSource>settings.xml</profileSource>
      </activeProfile>
      </activeProfiles>

      Attachments

        1. duplicateActiveProfiles.JPG
          156 kB
          Ian Berry
        2. duplicateActiveProfiles.zip
          110 kB
          Ian Berry
        3. settings.xml
          0.6 kB
          Ian Berry

        Activity

          People

            bentmann Benjamin Bentmann
            ian.berry Ian Berry
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: