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

Lack of error checks on profiles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.9
    • 2.0.11, 2.1.0, 3.0-alpha-3
    • Profiles
    • None
    • Patch

    Description

      DefaultProfileManager performs no error checks on the profile IDs So If I specify bogus profile IDs from plugins (like mvn -P no-such-profile), Maven doesn't complain, and it just runs as if nothing was specified. This is very error prone.

      Also, I've seen some documentation that says deactivating a profile is "-P !profile". As far as I can tell from the code, this is wrong, but because of the lack of error check, such usage just gets ignored, and the user is left confused as to why the profile isn't deactivated.

      Attachments

        1. MNG-3641-maven-project.patch
          2 kB
        2. MNG-3641-IT.tar.gz
          3 kB
        3. mng-3641.zip
          3 kB
          Benjamin Bentmann

        Issue Links

          Activity

            People

              brett Brett Porter
              kohsuke Kohsuke Kawaguchi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: