maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jo Vandermeeren" <Jo.Vandermee...@ordina.be>
Subject Re: Plugin to compile and run
Date Wed, 20 Jun 2007 18:01:15 GMT
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 <iamnoah@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message