Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.0.6
-
Fix Version/s: None
-
Component/s: Profiles
-
Labels:None
-
Number of attachments :
Description
I have profile specified in pom.xml (attached). And I try to specify it in settings.xml's <activeProfile> (attache as nonworking-settings.xml) Accordng to help:active-profiles I get:
mvn help:active-profiles Active Profiles for Project 'test:test:jar:1.0-SNAPSHOT': There are no active profiles.
When I specify the same profile name in settings.xml (attached as working-settings.xml) maven see both profiles (from pom.xml and from settings.xml):
mvn help:active-profiles Active Profiles for Project 'test:test:jar:1.0-SNAPSHOT': The following profiles are active: - env-test (source: pom) - env-test (source: settings.xml)
Attachments
Issue Links
| This issue duplicates: | ||||
| MNG-2234 | activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty |
|
|
|
It seems to be a duplicate of http://jira.codehaus.org/browse/MNG-2234
I've got the same issue. Quick fix is to add an empty dummy <profile> in your settings.xml file for <activeProfiles> to be read.