Maven 2 & 3

Profiles in profiles.xml are active by default

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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 :
    1

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

Issue Links

Activity

Hide
Wendy Smoak added a comment -

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.

Show
Wendy Smoak added a comment - 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.
Hide
Benjamin Bentmann added a comment -

Fixed in r734803, r734808 and r734810, respectively.

Show
Benjamin Bentmann added a comment - Fixed in r734803, r734808 and r734810, respectively.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: