Maven
  1. Maven
  2. MNG-3571

Allow use of ! when deactivating profiles

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.10, 2.1.0-M1
    • Component/s: Command Line
    • Labels:
      None

      Description

      The current syntax for deactivating a profile from the command line is:
      mvn -P-myProfile

      It would be more intuitive if the exclamation point could be used in addition to the dash.
      mvn -P!myProfile

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          1d 23h 46m 1 Paul Gier 15/May/08 17:22
          Mark Thomas made changes -
          Workflow jira [ 12950693 ] Default workflow, editable Closed status [ 12986917 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12713982 ] Default workflow, editable Closed status [ 12753729 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          John Casey made changes -
          Fix Version/s 2.1.0-M1 [ 14503 ]
          Fix Version/s 3.0-alpha-1 [ 13143 ]
          Hide
          John Casey added a comment -

          Adding fix-for for both 2.0.10 and 2.1.0-M1, since 2.1.0-M1 will actually be released first and may not incorporate all of the eventual issue fixes released in 2.0.10.

          Show
          John Casey added a comment - Adding fix-for for both 2.0.10 and 2.1.0-M1, since 2.1.0-M1 will actually be released first and may not incorporate all of the eventual issue fixes released in 2.0.10.
          Hide
          Paul Gier added a comment -

          The site was updated with a description of the ! syntax in this commit:
          http://www.nabble.com/svn-commit%3A-r656894----maven-site-trunk-src-site-apt-guides-introduction-introduction-to-profiles.apt-ts17264759.html

          I'll add something about the +/- syntax also.

          Show
          Paul Gier added a comment - The site was updated with a description of the ! syntax in this commit: http://www.nabble.com/svn-commit%3A-r656894----maven-site-trunk-src-site-apt-guides-introduction-introduction-to-profiles.apt-ts17264759.html I'll add something about the +/- syntax also.
          Hide
          Paul Benedict added a comment -

          Was there also a commit to update any documentation using the exclamation/plus/minus syntax?

          Show
          Paul Benedict added a comment - Was there also a commit to update any documentation using the exclamation/plus/minus syntax?
          Hide
          Paul Gier added a comment -

          Currently it's both. You can use exclamation or minus to deactivate a profile.

          Show
          Paul Gier added a comment - Currently it's both. You can use exclamation or minus to deactivate a profile.
          Hide
          Paul Benedict added a comment -

          So which is it? MNG-3545 comments say it is plus and minus. This issue says exclamation mark.

          Show
          Paul Benedict added a comment - So which is it? MNG-3545 comments say it is plus and minus. This issue says exclamation mark.
          Paul Gier made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Paul Gier made changes -
          Fix Version/s 2.0.10 [ 14112 ]
          Fix Version/s 2.1-alpha-1 [ 13143 ]
          Paul Gier made changes -
          Assignee Paul Gier [ pgier ]
          Hide
          Paul Gier added a comment -

          This was suggested on the developer list here:
          http://www.mail-archive.com/dev@maven.apache.org/msg74261.html

          Show
          Paul Gier added a comment - This was suggested on the developer list here: http://www.mail-archive.com/dev@maven.apache.org/msg74261.html
          Paul Gier made changes -
          Field Original Value New Value
          Link This issue is related to MNG-3545 [ MNG-3545 ]
          Paul Gier created issue -

            People

            • Assignee:
              Paul Gier
              Reporter:
              Paul Gier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development