Maven 2 & 3

Allow use of ! when deactivating profiles

Details

  • Type: Improvement Improvement
  • Status: Closed 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
  • Complexity:
    Intermediate
  • Number of attachments :
    0

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

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
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.
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 -

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 -

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
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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: