settings.xml doesn't handle profile from pom.xml
------------------------------------------------

                 Key: MNG-3051
                 URL: http://jira.codehaus.org/browse/MNG-3051
             Project: Maven 2
          Issue Type: Bug
          Components: Profiles
    Affects Versions: 2.0.6
            Reporter: Den Orlov
         Attachments: nonworking-settings.xml, pom.xml, working-settings.xml

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:

{noformat}
mvn help:active-profiles
Active Profiles for Project 'test:test:jar:1.0-SNAPSHOT':

There are no active profiles.
{noformat}

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):

{noformat}
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)
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to