You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benoit Decherf <de...@yahoo-inc.com> on 2008/01/02 16:14:39 UTC

Re: extends plugins

I don't think this is a good solution. There is no way to do this properly ?

Benoit

Tom Huybrechts wrote:
> I usually just copy the source for the plugins I'm extending. They often are
> only wrappers around some reusable plexus component.
>
> Tom
>
> On Dec 21, 2007 11:03 AM, Benoit Decherf <de...@yahoo-inc.com> wrote:
>
>   
>> Hi,
>>
>> I'm working on the migration of some projects from ant to maven. for
>> some of the work done in ant target, there is no corresponding plugin
>> for maven (ex: serialver: http://serialver.sourceforge.net/).
>> So I make a plugin that comment the serialversionUID on the source
>> class. Then the plugin compile the class and execute serialver to
>> compute the serializeVerionUID and compare it to the last one.
>>
>> My problem is that to compile the generated sources, I need to extends
>> the AbstractCompilerMojo from maven-compiler-plugin. But if i just
>> extends this class, the parameter of the parent class are not set by
>> plexus. How should I do this ?
>>
>> Thanks,
>> Benoit
>> PS: I'd like to distribute the plugins. Is there any repository where I
>> can submit my sources ?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org