Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.4
-
Fix Version/s: 2.0.11, 2.1.0, 3.0-alpha-2
-
Component/s: Profiles
-
Labels:None
-
Environment:windows 2000
-
Complexity:Intermediate
-
Number of attachments :
Description
Profile specification on command line is ignored and all profiles are active.
How to reproduce:
- open attachment
- extract to folder
- type: cd my-app
- type: mvn help:active-profiles -Pproduction
- you get the following:
The following profiles are active:
- skipunittest (source: profiles.xml)
- test (source: profiles.xml)
- production (source: profiles.xml)
- you should get:
The following profiles are active:
- production (source: profiles.xml)
thanks,
Attila
Attachments
Issue Links
| This issue is duplicated by: | ||||
| MNG-3788 | Profiles in profiles.xml not activated properly |
|
|
|
Profiles in profiles.xml seem to always be "active by default" unless other <activation> is present.
Workaround: Move the profiles into pom.xml and it will work the way you expect.