to clarify what I mean, you generate a class that extends
AbstractMojo, has the required injection fields for all the
@parameters and has an execute method that passes through all the
injection fields and then invokes the required method.

On 4 November 2011 11:11, Stephen Connolly
<[email protected]> wrote:
> Syntetic bridging classes solves that issue and keeps 2.2.1 compat (as
> 2.0.x is JDK 1.4)
>
> On 4 November 2011 11:09, Olivier Lamy <[email protected]> wrote:
>> Hello,
>>
>> Things like below will need some changes in core, IMHO we need to be
>> compliant with core 2.x and 3.x :
>>
>>  @Goal(name="foo")
>>  public void doExecuteGoal() {
>>    // equiv of AbstractMojo.execute without requiring the interface
>>  }
>>
>>  @Goal(name="bar")
>>  public void doOtherExecuteGoal() {
>>    // allowing multiple goals from the same shared common class
>>  }
>>
>>
>>
>> 2011/11/4 Stephen Connolly <[email protected]>:
>>> added a comment
>>>
>>> On 3 November 2011 23:18, Hervé BOUTEMY <[email protected]> wrote:
>>>> Hi,
>>>>
>>>> I reworked on Java 5 Annotations for Plugins proposal started a while ago: 
>>>> [1]
>>>>
>>>> Before going deeper into code, I'd like to have some review of the proposed
>>>> form of the tool. Any comment is welcome.
>>>>
>>>> Regards,
>>>>
>>>> Hervé
>>>>
>>>>
>>>> [1]
>>>> https://cwiki.apache.org/confluence/display/MAVEN/Java+5+Annotations+for+Plugins
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>>
>>
>> --
>> Olivier Lamy
>> Talend : http://talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to