You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Yegor Bugayenko (JIRA)" <ji...@codehaus.org> on 2011/04/30 07:44:22 UTC

[jira] Created: (MNG-5083) unconditional explicit profile activation

unconditional explicit profile activation
-----------------------------------------

                 Key: MNG-5083
                 URL: http://jira.codehaus.org/browse/MNG-5083
             Project: Maven 2 & 3
          Issue Type: New Feature
    Affects Versions: 3.0.3
            Reporter: Yegor Bugayenko


Would be nice to have an ability to activate a profile unconditionally:

{noformat}
<profiles>
  <profile>
    <activation>
      <enforce>true</enforce>
    </activation>
  </profile>
</profiles>
{noformat}

That should mean that the profile is active no matter what. All other activation conditions are just ignored.

With this feature profiles could be used for convenient grouping of plugins inside one module. For better readability of {{pom.xml}}.

-- 
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] Issue Comment Edited: (MNG-5083) unconditional explicit profile activation

Posted by "Yegor Bugayenko (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-5083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=265320#action_265320 ] 

Yegor Bugayenko edited comment on MNG-5083 at 4/30/11 9:24 PM:
---------------------------------------------------------------

{noformat}
<enforce>true</enforce>
{noformat}

shall mean that the profile has to be explicitly de-activated.

      was (Author: fazend):
    {{noformat}}
<enforce>true</enforce>
{{noformat}}

shall mean that the profile has to be explicitly de-activated.
  
> unconditional explicit profile activation
> -----------------------------------------
>
>                 Key: MNG-5083
>                 URL: http://jira.codehaus.org/browse/MNG-5083
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>    Affects Versions: 3.0.3
>            Reporter: Yegor Bugayenko
>
> Would be nice to have an ability to activate a profile unconditionally:
> {noformat}
> <profiles>
>   <profile>
>     <activation>
>       <enforce>true</enforce>
>     </activation>
>   </profile>
> </profiles>
> {noformat}
> That should mean that the profile is active no matter what. All other activation conditions are just ignored.
> With this feature profiles could be used for convenient grouping of plugins inside one module. For better readability of {{pom.xml}}.

-- 
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-5083) unconditional explicit profile activation

Posted by "Yegor Bugayenko (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271876#comment-271876 ] 

Yegor Bugayenko commented on MNG-5083:
--------------------------------------

This is a possible workaround:

{noformat}
<profile>
  <activation>
    <file><exists>pom.xml</exists></file>
  </activation>
</profile>
{noformat}


> unconditional explicit profile activation
> -----------------------------------------
>
>                 Key: MNG-5083
>                 URL: https://jira.codehaus.org/browse/MNG-5083
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>    Affects Versions: 3.0.3
>            Reporter: Yegor Bugayenko
>
> Would be nice to have an ability to activate a profile unconditionally:
> {noformat}
> <profiles>
>   <profile>
>     <activation>
>       <enforce>true</enforce>
>     </activation>
>   </profile>
> </profiles>
> {noformat}
> That should mean that the profile is active no matter what. All other activation conditions are just ignored.
> With this feature profiles could be used for convenient grouping of plugins inside one module. For better readability of {{pom.xml}}.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MNG-5083) unconditional explicit profile activation

Posted by "Yegor Bugayenko (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-5083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=265320#action_265320 ] 

Yegor Bugayenko edited comment on MNG-5083 at 4/30/11 9:25 PM:
---------------------------------------------------------------

{noformat}
<enforce>false</enforce>
{noformat}

shall mean that the profile has to be explicitly de-activated.

      was (Author: fazend):
    {noformat}
<enforce>true</enforce>
{noformat}

shall mean that the profile has to be explicitly de-activated.
  
> unconditional explicit profile activation
> -----------------------------------------
>
>                 Key: MNG-5083
>                 URL: http://jira.codehaus.org/browse/MNG-5083
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>    Affects Versions: 3.0.3
>            Reporter: Yegor Bugayenko
>
> Would be nice to have an ability to activate a profile unconditionally:
> {noformat}
> <profiles>
>   <profile>
>     <activation>
>       <enforce>true</enforce>
>     </activation>
>   </profile>
> </profiles>
> {noformat}
> That should mean that the profile is active no matter what. All other activation conditions are just ignored.
> With this feature profiles could be used for convenient grouping of plugins inside one module. For better readability of {{pom.xml}}.

-- 
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-5083) unconditional explicit profile activation

Posted by "Yegor Bugayenko (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-5083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=265320#action_265320 ] 

Yegor Bugayenko commented on MNG-5083:
--------------------------------------

{{noformat}}
<enforce>true</enforce>
{{noformat}}

shall mean that the profile has to be explicitly de-activated.

> unconditional explicit profile activation
> -----------------------------------------
>
>                 Key: MNG-5083
>                 URL: http://jira.codehaus.org/browse/MNG-5083
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>    Affects Versions: 3.0.3
>            Reporter: Yegor Bugayenko
>
> Would be nice to have an ability to activate a profile unconditionally:
> {noformat}
> <profiles>
>   <profile>
>     <activation>
>       <enforce>true</enforce>
>     </activation>
>   </profile>
> </profiles>
> {noformat}
> That should mean that the profile is active no matter what. All other activation conditions are just ignored.
> With this feature profiles could be used for convenient grouping of plugins inside one module. For better readability of {{pom.xml}}.

-- 
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-5083) unconditional explicit profile activation

Posted by "Martin Todorov (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271186#comment-271186 ] 

Martin Todorov commented on MNG-5083:
-------------------------------------


Yegor, 

How would this be different from:
{code}
<project>
  ...
  <profiles>
    <profile>
      <id>my-always-active-profile</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      ...
    </profile>
  </profiles>
</project>
{code}

This already exists in Maven.


> unconditional explicit profile activation
> -----------------------------------------
>
>                 Key: MNG-5083
>                 URL: https://jira.codehaus.org/browse/MNG-5083
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>    Affects Versions: 3.0.3
>            Reporter: Yegor Bugayenko
>
> Would be nice to have an ability to activate a profile unconditionally:
> {noformat}
> <profiles>
>   <profile>
>     <activation>
>       <enforce>true</enforce>
>     </activation>
>   </profile>
> </profiles>
> {noformat}
> That should mean that the profile is active no matter what. All other activation conditions are just ignored.
> With this feature profiles could be used for convenient grouping of plugins inside one module. For better readability of {{pom.xml}}.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-5083) unconditional explicit profile activation

Posted by "Yegor Bugayenko (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271206#comment-271206 ] 

Yegor Bugayenko commented on MNG-5083:
--------------------------------------

{{<activeByDefault>}} will be ignored once you specify profile name in command line (using {{-P}} argument)

> unconditional explicit profile activation
> -----------------------------------------
>
>                 Key: MNG-5083
>                 URL: https://jira.codehaus.org/browse/MNG-5083
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>    Affects Versions: 3.0.3
>            Reporter: Yegor Bugayenko
>
> Would be nice to have an ability to activate a profile unconditionally:
> {noformat}
> <profiles>
>   <profile>
>     <activation>
>       <enforce>true</enforce>
>     </activation>
>   </profile>
> </profiles>
> {noformat}
> That should mean that the profile is active no matter what. All other activation conditions are just ignored.
> With this feature profiles could be used for convenient grouping of plugins inside one module. For better readability of {{pom.xml}}.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira