[ http://jira.codehaus.org/browse/MNG-3328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189267#action_189267 ]
Alejandro Guizar commented on MNG-3328: --------------------------------------- Activating a profile based on EITHER property matching the given values is already possible, just copy the profile. If you want to avoid duplication simply use XML entities. What is not currently possible is to activate a profile based on ALL properties matching the given values. I would like that the following snippet meant "if all properties match the given values, the profile should be activated". {code:xml} <activation> <property> <name>my-prop-1</name> <value>some-value</value> </property> <property> <name>my-prop-2</name> <value>another-value</value> </property> </activation> {code} > Allow multiple profile activation properties. > --------------------------------------------- > > Key: MNG-3328 > URL: http://jira.codehaus.org/browse/MNG-3328 > Project: Maven 2 > Issue Type: Improvement > Components: Profiles > Affects Versions: 2.0.8 > Reporter: Paul Gier > Fix For: 3.x > > > The pom model should be changed to allow multiple properties to activate a > profile. So the profile activation section could look something like this: > {code:xml} > <activation> > <properties> > <my-prop-1>some-value</my-prop-1> > <my-prop-2>another-value</my-prop-2> > </properties> > </activation> > {code} > This would provide more flexibility in profile activation. -- 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