Issue Details (XML | Word | Printable)

Key: MNG-2605
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Benjamin Bentmann
Reporter: Attila Mezei-Horvati
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven 2 & 3

Profiles in profiles.xml are active by default

Created: 12/Oct/06 06:03 PM   Updated: 15/Jan/09 02:40 PM   Resolved: 15/Jan/09 02:40 PM
Component/s: Profiles
Affects Version/s: 2.0.4
Fix Version/s: 2.0.11, 2.1.0, 3.0-alpha-2

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive my-app.zip (3 kB)

Environment: windows 2000
Issue Links:
Duplicate
 

Complexity: Intermediate


 Description  « Hide

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



Wendy Smoak added a comment - 04/Feb/07 06:12 PM

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.


Benjamin Bentmann added a comment - 15/Jan/09 02:40 PM

Fixed in r734803, r734808 and r734810, respectively.