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

settings.xml doesn't handle profile from pom.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.6
    • None
    • Profiles
    • None

    Description

      I have profile specified in pom.xml (attached). And I try to specify it in settings.xml's <activeProfile> (attache as nonworking-settings.xml) Accordng to help:active-profiles I get:

      mvn help:active-profiles
      Active Profiles for Project 'test:test:jar:1.0-SNAPSHOT':
      
      There are no active profiles.
      

      When I specify the same profile name in settings.xml (attached as working-settings.xml) maven see both profiles (from pom.xml and from settings.xml):

      mvn help:active-profiles
      Active Profiles for Project 'test:test:jar:1.0-SNAPSHOT':
      
      The following profiles are active:
      
       - env-test (source: pom)
       - env-test (source: settings.xml)
      

      Attachments

        1. pom.xml
          1.0 kB
        2. nonworking-settings.xml
          0.1 kB
        3. working-settings.xml
          0.2 kB

        Issue Links

          Activity

            People

              brett Brett Porter
              den.orlov Den Orlov
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: