You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Manfred Geiler (JIRA)" <ji...@codehaus.org> on 2006/04/20 19:25:19 UTC

[jira] Created: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty
----------------------------------------------------------------------------------------

         Key: MNG-2234
         URL: http://jira.codehaus.org/browse/MNG-2234
     Project: Maven 2
        Type: Bug

    Versions: 2.0.4    
    Reporter: Manfred Geiler


When i have this settings.xml file in my user home dir, the activeProfile setting is simply ignored by Maven:
<settings>
 <activeProfiles>
     <activeProfile>env-test</activeProfile>
 </activeProfiles>
</settings>

Adding an empty profiles section does not help:
<settings>
 <profiles>
 </profiles>
 <activeProfiles>
     <activeProfile>env-test</activeProfile>
 </activeProfiles>
</settings>

Well, adding a dummy profile makes it work:
<settings>
 <profiles>
    <profile>
          <id>dummy</id>
    </profile>
 </profiles>
 <activeProfiles>
     <activeProfile>env-test</activeProfile>
 </activeProfiles>
</settings>

Funny, isn't it?

Regards,
Manfred


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


Re: [jira] Created: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by John Casey <ca...@gmail.com>.
sorry, will reply in the issue.

-j

On 4/20/06, John Casey <ca...@gmail.com> wrote:
>
> what would you expect it to do?
>
> -john
>
>
> On 4/20/06, Manfred Geiler (JIRA) <ji...@codehaus.org> wrote:
> >
> > activeProfile in ~/.m2/settings.xml is ignored when profiles section is
> > missing or empty
> >
> > ----------------------------------------------------------------------------------------
> >
> >          Key: MNG-2234
> >          URL: http://jira.codehaus.org/browse/MNG-2234
> >      Project: Maven 2
> >         Type: Bug
> >
> >     Versions: 2.0.4
> >     Reporter: Manfred Geiler
> >
> >
> > When i have this settings.xml file in my user home dir, the
> > activeProfile setting is simply ignored by Maven:
> > <settings>
> > <activeProfiles>
> >      <activeProfile>env-test</activeProfile>
> > </activeProfiles>
> > </settings>
> >
> > Adding an empty profiles section does not help:
> > <settings>
> > <profiles>
> > </profiles>
> > <activeProfiles>
> >      <activeProfile>env-test</activeProfile>
> > </activeProfiles>
> > </settings>
> >
> > Well, adding a dummy profile makes it work:
> > <settings>
> > <profiles>
> >     <profile>
> >           <id>dummy</id>
> >     </profile>
> > </profiles>
> > <activeProfiles>
> >      <activeProfile>env-test</activeProfile>
> > </activeProfiles>
> > </settings>
> >
> > Funny, isn't it?
> >
> > Regards,
> > Manfred
> >
> >
> > --
> > 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
> >
> >
>

Re: [jira] Created: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by John Casey <ca...@gmail.com>.
what would you expect it to do?

-john

On 4/20/06, Manfred Geiler (JIRA) <ji...@codehaus.org> wrote:
>
> activeProfile in ~/.m2/settings.xml is ignored when profiles section is
> missing or empty
>
> ----------------------------------------------------------------------------------------
>
>          Key: MNG-2234
>          URL: http://jira.codehaus.org/browse/MNG-2234
>      Project: Maven 2
>         Type: Bug
>
>     Versions: 2.0.4
>     Reporter: Manfred Geiler
>
>
> When i have this settings.xml file in my user home dir, the activeProfile
> setting is simply ignored by Maven:
> <settings>
> <activeProfiles>
>      <activeProfile>env-test</activeProfile>
> </activeProfiles>
> </settings>
>
> Adding an empty profiles section does not help:
> <settings>
> <profiles>
> </profiles>
> <activeProfiles>
>      <activeProfile>env-test</activeProfile>
> </activeProfiles>
> </settings>
>
> Well, adding a dummy profile makes it work:
> <settings>
> <profiles>
>     <profile>
>           <id>dummy</id>
>     </profile>
> </profiles>
> <activeProfiles>
>      <activeProfile>env-test</activeProfile>
> </activeProfiles>
> </settings>
>
> Funny, isn't it?
>
> Regards,
> Manfred
>
>
> --
> 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
>
>

[jira] Updated: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2234?page=all ]

John Casey updated MNG-2234:
----------------------------

    Fix Version: 2.0.5

> activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty
> ----------------------------------------------------------------------------------------
>
>          Key: MNG-2234
>          URL: http://jira.codehaus.org/browse/MNG-2234
>      Project: Maven 2
>         Type: Bug

>     Versions: 2.0.4
>     Reporter: Manfred Geiler
>      Fix For: 2.0.5

>
>
> When i have this settings.xml file in my user home dir, the activeProfile setting is simply ignored by Maven:
> <settings>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Adding an empty profiles section does not help:
> <settings>
>  <profiles>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Well, adding a dummy profile makes it work:
> <settings>
>  <profiles>
>     <profile>
>           <id>dummy</id>
>     </profile>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Funny, isn't it?
> Regards,
> Manfred

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


[jira] Commented: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by "Mathias Arens (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_105829 ] 

Mathias Arens commented on MNG-2234:
------------------------------------

I have the same problem with 2.0.7 and it would be great if this problem would be fixed in 2.0.8.

> activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty
> ----------------------------------------------------------------------------------------
>
>                 Key: MNG-2234
>                 URL: http://jira.codehaus.org/browse/MNG-2234
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles, Settings
>    Affects Versions: 2.0.4
>            Reporter: Manfred Geiler
>             Fix For: 2.0.x
>
>
> When i have this settings.xml file in my user home dir, the activeProfile setting is simply ignored by Maven:
> <settings>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Adding an empty profiles section does not help:
> <settings>
>  <profiles>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Well, adding a dummy profile makes it work:
> <settings>
>  <profiles>
>     <profile>
>           <id>dummy</id>
>     </profile>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Funny, isn't it?
> Regards,
> Manfred

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

        

[jira] Updated: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-2234:
------------------------------

    Component/s: Settings
                 Profiles

> activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty
> ----------------------------------------------------------------------------------------
>
>                 Key: MNG-2234
>                 URL: http://jira.codehaus.org/browse/MNG-2234
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles, Settings
>    Affects Versions: 2.0.4
>            Reporter: Manfred Geiler
>             Fix For: 2.0.x
>
>
> When i have this settings.xml file in my user home dir, the activeProfile setting is simply ignored by Maven:
> <settings>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Adding an empty profiles section does not help:
> <settings>
>  <profiles>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Well, adding a dummy profile makes it work:
> <settings>
>  <profiles>
>     <profile>
>           <id>dummy</id>
>     </profile>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Funny, isn't it?
> Regards,
> Manfred

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

        

[jira] Commented: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by "Krystian Nowak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107746 ] 

Krystian Nowak commented on MNG-2234:
-------------------------------------

It seems to be a duplicate of http://jira.codehaus.org/browse/MNG-3051


> activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty
> ----------------------------------------------------------------------------------------
>
>                 Key: MNG-2234
>                 URL: http://jira.codehaus.org/browse/MNG-2234
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles, Settings
>    Affects Versions: 2.0.4
>            Reporter: Manfred Geiler
>            Assignee: Jason van Zyl
>             Fix For: 2.1-alpha-1
>
>
> When i have this settings.xml file in my user home dir, the activeProfile setting is simply ignored by Maven:
> <settings>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Adding an empty profiles section does not help:
> <settings>
>  <profiles>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Well, adding a dummy profile makes it work:
> <settings>
>  <profiles>
>     <profile>
>           <id>dummy</id>
>     </profile>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Funny, isn't it?
> Regards,
> Manfred

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

        

[jira] Closed: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-2234.
-----------------------------

         Assignee: Brett Porter  (was: Jason van Zyl)
       Resolution: Fixed
    Fix Version/s:     (was: 2.1-alpha-1)
                   2.0.9

> activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty
> ----------------------------------------------------------------------------------------
>
>                 Key: MNG-2234
>                 URL: http://jira.codehaus.org/browse/MNG-2234
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles, Settings
>    Affects Versions: 2.0.4
>            Reporter: Manfred Geiler
>            Assignee: Brett Porter
>             Fix For: 2.0.9
>
>
> When i have this settings.xml file in my user home dir, the activeProfile setting is simply ignored by Maven:
> <settings>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Adding an empty profiles section does not help:
> <settings>
>  <profiles>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Well, adding a dummy profile makes it work:
> <settings>
>  <profiles>
>     <profile>
>           <id>dummy</id>
>     </profile>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Funny, isn't it?
> Regards,
> Manfred

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

        

[jira] Commented: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by "Manfred Geiler (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2234?page=comments#action_63894 ] 

Manfred Geiler commented on MNG-2234:
-------------------------------------

The actual profiles are defined in the pom.xml files (= best practice for environment settings - see http://maven.apache.org/guides/introduction/introduction-to-profiles.html).
To activate one of these profiles without always having to add a -P foobar option on the command line, it makes perfect sense to have this profile activation in the user's settings.xml.
And it really works. But only when there is a dummy profile in the settings.xml file.


> activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty
> ----------------------------------------------------------------------------------------
>
>          Key: MNG-2234
>          URL: http://jira.codehaus.org/browse/MNG-2234
>      Project: Maven 2
>         Type: Bug

>     Versions: 2.0.4
>     Reporter: Manfred Geiler

>
>
> When i have this settings.xml file in my user home dir, the activeProfile setting is simply ignored by Maven:
> <settings>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Adding an empty profiles section does not help:
> <settings>
>  <profiles>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Well, adding a dummy profile makes it work:
> <settings>
>  <profiles>
>     <profile>
>           <id>dummy</id>
>     </profile>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Funny, isn't it?
> Regards,
> Manfred

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


[jira] Updated: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason van Zyl updated MNG-2234:
-------------------------------

    Fix Version/s:     (was: 2.0.x)
                   2.1-alpha-1

After chatting with John, we can turn this on because a proposal is forth coming that will limit downstream profile activation to os, jdk, and activeByDefault. Everything else should be ignored. So we can let users turn on profiles in their settings but this begs the question, what is not being triggered by default in the project you're working on?

> activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty
> ----------------------------------------------------------------------------------------
>
>                 Key: MNG-2234
>                 URL: http://jira.codehaus.org/browse/MNG-2234
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles, Settings
>    Affects Versions: 2.0.4
>            Reporter: Manfred Geiler
>            Assignee: Jason van Zyl
>             Fix For: 2.1-alpha-1
>
>
> When i have this settings.xml file in my user home dir, the activeProfile setting is simply ignored by Maven:
> <settings>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Adding an empty profiles section does not help:
> <settings>
>  <profiles>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Well, adding a dummy profile makes it work:
> <settings>
>  <profiles>
>     <profile>
>           <id>dummy</id>
>     </profile>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Funny, isn't it?
> Regards,
> Manfred

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

        

[jira] Commented: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2234?page=comments#action_63891 ] 

John Casey commented on MNG-2234:
---------------------------------

Assuming the activeProfiles section is only there to activate profiles that you've provided, how would you expect this to act?

> activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty
> ----------------------------------------------------------------------------------------
>
>          Key: MNG-2234
>          URL: http://jira.codehaus.org/browse/MNG-2234
>      Project: Maven 2
>         Type: Bug

>     Versions: 2.0.4
>     Reporter: Manfred Geiler

>
>
> When i have this settings.xml file in my user home dir, the activeProfile setting is simply ignored by Maven:
> <settings>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Adding an empty profiles section does not help:
> <settings>
>  <profiles>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Well, adding a dummy profile makes it work:
> <settings>
>  <profiles>
>     <profile>
>           <id>dummy</id>
>     </profile>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Funny, isn't it?
> Regards,
> Manfred

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


[jira] Updated: (MNG-2234) activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2234?page=all ]

Kenney Westerhof updated MNG-2234:
----------------------------------

    Fix Version/s:     (was: 2.0.5)
                   2.0.6

> activeProfile in ~/.m2/settings.xml is ignored when profiles section is missing or empty
> ----------------------------------------------------------------------------------------
>
>                 Key: MNG-2234
>                 URL: http://jira.codehaus.org/browse/MNG-2234
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>            Reporter: Manfred Geiler
>             Fix For: 2.0.6
>
>
> When i have this settings.xml file in my user home dir, the activeProfile setting is simply ignored by Maven:
> <settings>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Adding an empty profiles section does not help:
> <settings>
>  <profiles>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Well, adding a dummy profile makes it work:
> <settings>
>  <profiles>
>     <profile>
>           <id>dummy</id>
>     </profile>
>  </profiles>
>  <activeProfiles>
>      <activeProfile>env-test</activeProfile>
>  </activeProfiles>
> </settings>
> Funny, isn't it?
> Regards,
> Manfred

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