Details
Description
In maven 2.0.9, deactivating a profile "foo" that is declared and marked activeByDefault in the local POM does not work, as in DefaultProfileManager.java:227 all activeByDefault profiles are added if no profile is explicitly given ("-Pbar").
In the attached zip, run
mvn -P-foo help:active-profiles
and note that foo is active.
The patch fixes these issues by checking all default-activated profiles against the exclusions list when they are added "by default".
Attachments
Issue Links
| This issue is duplicated by: | ||||
| MNG-3527 | profile deactivation has no affect |
|
|
|
| MNG-3640 | CLI cannot deactivate a profile that's activated in POM via <activeByDefault> |
|
|
|
| This issue relates to: | ||||
| MNG-2557 | Various enhancements to profiles |
|
|
|
| MNG-3571 | Allow use of ! when deactivating profiles |
|
|
|
| This issue is depended upon by: | ||||
| MNG-3268 | Command line doesn't handle multiple -P correctly |
|
|
|
While making the patch for trunk : Is it intentional that the roles of + and - are swapped, i.e. +foo deactivates foo yet -foo activates it?