[ http://jira.codehaus.org/browse/MNG-472?page=comments#action_41309 ]
John Casey commented on MNG-472: -------------------------------- My main concern here is consistency with existing plugin functionality. For example, if I used 'm2 surefire:test' directly, and I'd added a <plugin/> for surefire with some configuration like such: ... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <test>**/SomethingTest*</test> </configuration> </plugin> </plugins> </build> ... then I would expect the 'test' goal invocation to pickup the value for ${test} without needing to add a <goals/> stanza to the plugin definition. In the same way, if I had this: ... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <executions> <execution> <id>test1</id> <configuration> <test>**/SomethingTest*</test> </configuration> </execution> <execution> <id>test2</id> <configuration> <test>**/SomethingElseTest*</test> </configuration> </execution> </executions> </plugin> </plugins> </build> ... and I executed 'm2 surefire:test', I would expect it to pickup both executions and run 'test' twice, regardless of the fact that I didn't configure the <goals/> stanza in each execution. Maybe this is incorrect behavior, but I listed this as critical as it struck me as potentially inconsistent - and something likely to popup in a bug report if we didn't talk about it and/or document it. So I filed this to make sure we talked about it. > multiple <execution/>'s with no goals not considered when running a goal > directly from the CLI > ---------------------------------------------------------------------------------------------- > > Key: MNG-472 > URL: http://jira.codehaus.org/browse/MNG-472 > Project: Maven 2 > Type: Bug > Components: maven-core > Reporter: John Casey > Assignee: John Casey > Priority: Critical > Fix For: 2.0-beta-1 > > > assume you specify a plugin in the pom with multiple <execution/> sections, > each containing configurations. > It should be possible to directly invoke a goal within this plugin, and have > that goal run once per execution, despite the fact that the goal is not > explicitly specified in the <execution/>. > This is not the case now. > Workaround: specify the goal for each execution in which you want it to run. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]