Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.9
-
Fix Version/s: 2.0.11, 2.1.0, 3.0-alpha-3
-
Component/s: Profiles
-
Labels:None
-
Complexity:Intermediate
-
Patch Submitted:Yes
-
Number of attachments :
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.
given the fact that we can trigger settings profiles at the CLI, we can't make these cases fail the build I don't think...but we could provide a prominent warning.