Yes, that's what I mean. I expected the pom project to iterate through the modules and compile them, and then invoke my Mojo.
I get the required results when I run: mvn compile my-goal It compiles the modules and then invoke the Mojo, but this is not the way I want to do it. Shai Brian E Fox wrote: > > Compile won't actually do anything in a pom project, but usually you > have a pom project at the top of some tree and maven iterates though the > modules listed in said pom project and invokes the build on those. Is > that what you mean? > > -----Original Message----- > From: carioca [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 16, 2008 5:19 AM > To: users@maven.apache.org > Subject: Re: Forcing the execution of a phase before a goal > > > Hi Stephen, > > Thank you for the reply. > > The only annotation that seems to do what you claim > @requires-phase=compile > does is @execute phase="<compile>". I am using this annotation and it > seems > to invoke the build lifecycle, but when running this in the master > project I > get the message: > > No goals needed for project - skipping > > In my opinion the lifecycle is started but no goals are configured for > projects of type pom. > I wonder what this means, because invoking "mvn compile" does compile > the > project. > > Does anyone have an idea? > > Shai > -- > View this message in context: > http://www.nabble.com/Forcing-the-execution-of-a-phase-before-a-goal-tp1 > 6005279s177p16077011.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] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Forcing-the-execution-of-a-phase-before-a-goal-tp16005279s177p16090084.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]