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

Profiles in profiles.xml are active by default

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.11, 2.1.0, 3.0-alpha-2
    • Component/s: Profiles
    • Labels:
      None
    • Environment:
      windows 2000

      Description

      Profile specification on command line is ignored and all profiles are active.

      How to reproduce:

      • open attachment
      • extract to folder
      • type: cd my-app
      • type: mvn help:active-profiles -Pproduction
      • you get the following:
        The following profiles are active:
      • skipunittest (source: profiles.xml)
      • test (source: profiles.xml)
      • production (source: profiles.xml)
      • you should get:

      The following profiles are active:

      • production (source: profiles.xml)

      thanks,
      Attila

        Attachments

        1. my-app.zip
          3 kB
          Attila Mezei-Horvati

          Issue Links

            Activity

              People

              • Assignee:
                bentmann Benjamin Bentmann
                Reporter:
                attila_mh Attila Mezei-Horvati
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: