Hi,

I developed a plugin with a Mojo that is being executed manually.

mvn myPlugin:my-goal

The Mojo has the following annotation:
@execute phase=compile

The Mojo is invoked from the directory of the master project in a multi
module project.
According to the documentation I expect that before the Mojo is invoked the
project will compile.
But instead I get the message:

No goals needed for project - skipping

I guess it's because by default no goals are bound to the lifecycle of the
pom project.

How can I bind goals to the default lifecycle of pom?
In other words, I want the multi module project to compile the submodules
before invoking the Mojo.
Can I define a different lifecycle for pom (using plexus for example)?

Thanks,
Shai
-- 
View this message in context: 
http://www.nabble.com/Binding-goals-to-POM%27s-default-life-cycle-tp16119966s177p16119966.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to