Re: Plugins with Annotations ETA

2012-05-12 Thread Olivier Lamy
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
        groupIdorg.apache.maven.plugins/groupId
        artifactIdmaven-plugin-plugin/artifactId
        version3.0-SNAPSHOT/version
        configuration
          skipErrorNoDescriptorsFoundtrue/skipErrorNoDescriptorsFound
        /configuration
        executions
          execution
            idmojo-descriptor/id
            phaseprocess-classes/phase
            goals
              goaldescriptor/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



Re: Plugins with Annotations ETA

2012-05-12 Thread Hervé BOUTEMY
great! well done!

working on documentation, I found something strange: @Component annotation 
doesn't provide readonly nor required attributes, that are available in Mojo 
Javadoc Tags. Is this expected or a simple omission?

Regards,

Hervé

Le samedi 12 mai 2012 12:30:31 Olivier Lamy a écrit :
 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.


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



Re: Plugins with Annotations ETA

2012-05-12 Thread Olivier Lamy
Omission !
I will fix that.
Thanks for review and doc fix :-)
--
Olivier
Le 12 mai 2012 17:22, Hervé BOUTEMY herve.bout...@free.fr a écrit :

 great! well done!

 working on documentation, I found something strange: @Component annotation
 doesn't provide readonly nor required attributes, that are available in
 Mojo
 Javadoc Tags. Is this expected or a simple omission?

 Regards,

 Hervé

 Le samedi 12 mai 2012 12:30:31 Olivier Lamy a écrit :
  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.


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




Maven plugin in ant/beanshell

2012-05-12 Thread Olivier Lamy
Hi,
Do we still maintain those extractor ?
Do you think users write maven plugin in ant/beanshell ?


Thanks,
-- 
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



Re: Maven plugin in ant/beanshell

2012-05-12 Thread Aldrin Leal
ant yes Sonatype's Book actually covers
ithttp://www.sonatype.com/books/mcookbook/reference/ch04s04.html

--
-- Aldrin Leal, ald...@leal.eng.br / http://meadiciona.com/aldrinleal


On Sat, May 12, 2012 at 6:36 PM, Olivier Lamy ol...@apache.org wrote:

 Hi,
 Do we still maintain those extractor ?
 Do you think users write maven plugin in ant/beanshell ?


 Thanks,
 --
 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




Re: Maven plugin in ant/beanshell

2012-05-12 Thread Olivier Lamy
My question is more do we really have to maintain that ?
Do you know real users using that ? :-)


2012/5/12 Aldrin Leal ald...@leal.eng.br:
 ant yes Sonatype's Book actually covers
 ithttp://www.sonatype.com/books/mcookbook/reference/ch04s04.html

 --
 -- Aldrin Leal, ald...@leal.eng.br / http://meadiciona.com/aldrinleal


 On Sat, May 12, 2012 at 6:36 PM, Olivier Lamy ol...@apache.org wrote:

 Hi,
 Do we still maintain those extractor ?
 Do you think users write maven plugin in ant/beanshell ?


 Thanks,
 --
 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





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



Re: Maven plugin in ant/beanshell

2012-05-12 Thread Chris Graham
There have been a few circumstances where I thought that it may have been
my only option to do stuff.

So I'd place it as a nice to have.

-Chris

On Sun, May 13, 2012 at 8:11 AM, Olivier Lamy ol...@apache.org wrote:

 My question is more do we really have to maintain that ?
 Do you know real users using that ? :-)


 2012/5/12 Aldrin Leal ald...@leal.eng.br:
  ant yes Sonatype's Book actually covers
  ithttp://www.sonatype.com/books/mcookbook/reference/ch04s04.html
 
  --
  -- Aldrin Leal, ald...@leal.eng.br / http://meadiciona.com/aldrinleal
 
 
  On Sat, May 12, 2012 at 6:36 PM, Olivier Lamy ol...@apache.org wrote:
 
  Hi,
  Do we still maintain those extractor ?
  Do you think users write maven plugin in ant/beanshell ?
 
 
  Thanks,
  --
  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
 
 



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