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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment