Hi Noah, Why don't you package that "generator" class with your plugin? Then define an execution for it during the generate-sources phase.
You should not call plugins from other plugins, because it makes your plugin hard to reuse. Instead, extend the lifecycle by plugging in on certain phases. Cf. http://www.mail-archive.com/users@maven.apache.org/msg67531.html Cheers Jo On 6/20/07, noah <[EMAIL PROTECTED]> wrote:
I'm currently using ant-run in the generate-sources phase to compile a class and then execute it. It works fine, but I need it on several projects and it's a pain to replicate the build file for each one, so I'd like to write a plugin to do it. Is there some way I can invoke the compile plugin on a particular file (or set of files) from a custom plugin? Or convert a build file (using the maven classpaths) to a plugin? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]