[ http://jira.codehaus.org/browse/MNG-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=180268#action_180268 ]
Juan M. Tula commented on MNG-3293: ----------------------------------- Thanks for the explanation, I don't know that is the expected behaviour. > Activating more than one profile with the same build plugin results in only > one execution > ----------------------------------------------------------------------------------------- > > Key: MNG-3293 > URL: http://jira.codehaus.org/browse/MNG-3293 > Project: Maven 2 > Issue Type: Bug > Components: Plugins and Lifecycle, Profiles > Affects Versions: 2.0.7 > Reporter: Paudi Moriarty > Assignee: Benjamin Bentmann > > For example: > It is possible to activate both of these profiles (mvn -Dtest1=true > -Dtest2=true help:active-profiles lists both profile1 and profile2) however > only profile2 is run (test1 activated is not echoed) > {code:xml} > <profile> > <id>profile1</id> > <activation> > <property> > <name>test1</name> > <value>true</value> > </property> > </activation> > <build> > <plugins> > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <phase>generate-sources</phase> > <goals> > <goal>run</goal> > </goals> > <configuration> > <tasks> > <echo>test1 activated</echo> > </tasks> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > </build> > </profile> > <profile> > <id>profile2</id> > <activation> > <property> > <name>test2</name> > <value>true</value> > </property> > </activation> > <build> > <plugins> > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <phase>generate-sources</phase> > <goals> > <goal>run</goal> > </goals> > <configuration> > <tasks> > <echo>test2 activated</echo> > </tasks> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > </build> > </profile> > {code} > Just a guess, but it looks like the executions are not being merged, rather > the definition of the second plugin overwrites the first. -- 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