On 24 Feb 07, at 12:16 PM 24 Feb 07, Eric Redmond wrote:
Follow the same guildlines, just with the Groovy projects instead:
I'm not sure anyone has actually used the Groovy Component Factory in
Plexus. I think Jeff Genender made another infrastructure for writing
Groovy plugins. I know Plexus components can be written in Groovy,
not sure if anyone has tried the native plexus way for actually
writing Mojos.
jason.
http://mojo.codehaus.org/jruby-maven-plugin/howto.html
Eric
On 2/24/07, Martin Gilday <[EMAIL PROTECTED]> wrote:
Managed to get it working. Had to change packaging from maven-plugin
back to jar, so I can now write my own plugin.xml.
Still not ideal as lose the benefit of it being generated from
annotations. So if any one has a way of doing that it would be
apprecitated.
Thanks,
Martin.
----- Original message -----
From: "Martin Gilday" <[EMAIL PROTECTED]>
To: [email protected]
Date: Sat, 24 Feb 2007 15:35:30 +0000
Subject: Mojos in languages other than Java
Hi,
I am trying to write a mojo in Groovy. According to the mojo api
docs
[1] this should be possible (it only meantions BeanShell explicitly).
However when I package my mojo the resulting plugin.xml is incorrect
showing now mojos. Consequently when I try and run the plugin a
NullPointer is thrown. I have tried writing my own plugin.xml and
manually placing it in src/main/resources/META-INF/maven/ but when
package is run it os overridden by the Maven generated one. I am
assuming Maven reads the annotations from *.java source files and
ignoring my *.groovy files (which I am compiling down to *.class
before
packaging).
Has anyone written a mojo in a language other than Java, or is
there any
documentation on doing so?
Thanks,
Martin.
[1]http://maven.apache.org/developers/mojo-api-specification.html
---------------------------------------------------------------------
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]
--
Eric Redmond
http://codehaus.org/~eredmond
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]