so all done :-).

2012/5/12 Olivier Lamy <ol...@apache.org>:
> Update: help generation works now.
> I have created a branch of compiler plugin using annotations as a
> sample: 
> https://svn.apache.org/repos/asf/maven/plugins/branches/maven-compiler-plugin-annotations/
>
> Now my idea is to create a branch 2.x from the current and merge the
> branch in trunk.
>
>
>
> 2012/5/9 Olivier Lamy <ol...@apache.org>:
>> Hi,
>> So I have pushed some stuff on supporting plugin descriptor generation
>> from annotations as described here [1].
>> I have added support of having annotations from parent classes even if
>> they are not in the same project (from reactors and/or dependencies).
>> BTW we still need to do some javadoc parsing for @deprecated, @since
>> and comments for class/field description. So if annotations comes from
>> reactor module (easy to scan sources) but if comes from a dependency I
>> try to get the sources from the artifact with try to resolve the same
>> artifact with classifier sources.
>>
>> All is in the branch [2]. Note version bump to 3.0-SNAPSHOT.
>> As the scanning tru asm must be done on compiled classes an extra
>> configuration is needed:
>>
>>      <plugin>
>>        <groupId>org.apache.maven.plugins</groupId>
>>        <artifactId>maven-plugin-plugin</artifactId>
>>        <version>3.0-SNAPSHOT</version>
>>        <configuration>
>>          <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
>>        </configuration>
>>        <executions>
>>          <execution>
>>            <id>mojo-descriptor</id>
>>            <phase>process-classes</phase>
>>            <goals>
>>              <goal>descriptor</goal>
>>            </goals>
>>          </execution>
>>        </executions>
>>      </plugin>
>>
>> You can have a look at the its
>> http://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189/maven-plugin-plugin/src/it/annotation*
>>
>> I still have an issue to fix for help generation. Currently the help
>> java mojo source is generated too early in the lifecycle so the plugin
>> descriptor from annotations is not yet available.
>> I will probably rewrite the help stuff to have a generic classes which
>> simply read the plugin descriptor file so need to have the plugin
>> descriptor available.
>>
>> Comments welcome :-)
>>
>> Thanks,
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>
>> [1] 
>> https://cwiki.apache.org/confluence/display/MAVEN/Java+5+Annotations+for+Plugins
>> [2] http://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189/
>
>
>
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to