maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <>
Subject Re: Modules in phase order
Date Tue, 02 Feb 2010 11:54:04 GMT
For everyone's understanding, I assume you mean plugins and not modules?

Plugins are executed in the order specified in the (effective) pom. However,
the best approach is most often to not rely on this but try to have not
dependency on the order of the execution of plugins within a phase. So, in
your case you could bind your plugin to the phase after package.

That being said, I don't really understand what you're trying to do. Why are
you cleaning up during the build process? As it doesn't do any difference
for the artifact it should go in the clean lifecycle.


On Tue, Feb 2, 2010 at 11:47, Ilya Kazakevich <>wrote:

> Hello,
> Is it possible to configure order in wich modules are executed in special
> phase?
> I have a module and I want it to be run right AFTER "jar:jar" in package
> phase.
> My first module runs in "prepare-package" phase and does some changes in
> some files that should be included in final .jar
> My second module should do some cleanup after it, but after .jar file is
> created. I can bind to "clean" phase, but I want to do it in package phase,
> so I can simply run "mvn package".
> That's probably against maven ideology. But I wish there is a way to
> accomplish that...
> Thanks.
> ====================
> Ilya Kazakevich
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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