[ 
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

        

Reply via email to