Sorry guys, my analysis was premature. I figured out the issue (which
likely applies to java5 annotations on java mojos as well as groovy).
By default, the maven-plugin-plugin:descriptor mojo runs in the
generate-resources phase. But of course, the class files (from compile
phase) with the java-
Thanks - maven-plugin-plugin 2.4 didn't have java5 annotations, so it
wouldn't work there regardless. The issue seems to be the groovy compiler
since it works sometimes (when greclipse generates the class files, but not
when gmaven-plugin generates them).
For now, I'll (unfortunately) stick with
ok, I didn't know this one
IIUC, it's based on groovy-maven-plugin, which does woodoo to transform Groovy
to java plugin without maven-plugin-plugin being aware of it
If you open a Jira issue with a testcase working with maven-plugin-plugin 2.4,
I can have a look to find why it stops working wit
It at least was possible to write a plugin in Groovy without annotations
though. See
http://www.sonatype.com/books/mcookbook/reference/writing-plugins-alternative-sect-writing-groovy.html
Not sure what happened..
manfred
On Thu, August 23, 2012 1:18 pm, Hervé BOUTEMY wrote:
> Groovy isn't actua
Groovy isn't actually supported: see maven-script part of
http://maven.apache.org/plugin-tools/
There isn't even anybody who opened a Jira issue about this.
Regards,
Hervé
Le mercredi 22 août 2012 14:07:39 Ben Tatham a écrit :
> I am trying to use java-annotations (not javadoc) on a Mojo writt
I am trying to use java-annotations (not javadoc) on a Mojo written in
groovy, as per [1]. (I need them so I can subclass the mojo in other,
multiple plugins, as annotations are, in theory, much easier than the Maven
2 ways of doing plugin extension).
However, the maven-plugin-plugin 3.1 does not