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]
