Hi,

I have a mojo that I invoke manually:
mvn os:run

I invoke this mojo from a project of type 'pom' and it is run in aggregated
mode.
The mojo gets the reactor projects and invoke them one by one.

What I would like it to do is first to invoke the project's compilation.
I tried using @execute phase=compile but it doesn't work.
I think it's due to the fact that the project is of type 'pom' (no
bindings).

I also tries to create my own lifecycle with my own role hint using plexus
but maven complained that
aggregated or multi module projects need to be of type 'pom'.

So, how can I make maven invoke compilation before executing my mojo?

Thanks,
Shai
-- 
View this message in context: 
http://www.nabble.com/Force-compilation-before-executing-a-mojo-tp19837352p19837352.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