[ http://jira.codehaus.org/browse/MNG-472?page=comments#action_41321 ] 

John Casey commented on MNG-472:
--------------------------------

even if the that specific goal has been provided in one or more execution 
sections? What if that goal has no phase binding? It will never be executed 
multiple times, in that scenario.

Are we saying that only mojos with @phase are eligible for mulitple execution?

I'd expect that if I told it to run multiple times (explicitly, through 
specification in <goals/>) then it should do that when I invoke it drectly from 
the command line.

I do agree that unless it is specifically in a <goals/> for an execution, it 
should NOT be implied...after all, who's to say which executions we meant it to 
run with? We could easily provide an execution (using full goal specification) 
where that goal was excluded. However, if the goal is listed in multiple 
execution sections, I think we have to run it multiple times even when it's 
directly invoked...

> 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]

Reply via email to