On Wed, Jul 1, 2009 at 11:37 AM, JavaGeek<[email protected]> wrote:
> I wrote a maven plugin. I want to run a program that writes a file in the > plugin's source code before the plugin is packaged. ... before the *project* is packaged, I assume? > How can I do that? Make your plugin execute in a phase that precedes the 'package' phase. The 'generate-sources' phase sounds like it would be appropriate. http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html If you did mean before packaging the plugin, then recurse. :) Write a plugin that runs this program, (or just use the exec plugin) and execute it in a phase that precedes... -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
