Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Not A Bug
-
Affects Version/s: 2.0.11, 2.2.1, 3.0-alpha-6
-
Fix Version/s: 3.0-alpha-6
-
Component/s: Profiles
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
This is a followup to http://jira.codehaus.org/browse/MNG-3641. Refer to that issue for the background.
The current warning message is:
"Profile with id: '" + explicitProfileId + "' has not been activated."
I think this message is misleading, because the profile actually is activated - it's just not used at all in the pom being processed. I suggest changing the message to something like:
"Profile with id '" + explicitProfileId + "' is activated, but this pom does not contain any usages of the profile."
Also, I don't think it makes sense to print this warning at all in a multi-module build. In the large multi-module project I work on, we have a number of profiles that are only used in a handful of the 50 or so modules.
Issue Links
- is related to
-
MNG-3641
Lack of error checks on profiles
-
The output from Maven 3.0-alpha-6 has already been clarified:
Something that doesn't exist can hardly be activated so I disagree with your argument here.
The original request for this warning was to capture typos and this holds for any build. At least Maven 3 outputs this warning at most once so it doesn't matter how many modules your project has.