I'm trying to set up a subproject of my main project. Unfortunately,
it's not working, because Maven is executing the preGoals and postGoals
from the parent project's maven.xml in addition to those in the
subproject's maven.xml. I added some echos to see in what order the
pre/postGoals were executing and here's what I see:

java:compile:
    [echo] subProject java:compile preGoal
    [echo] mainProject java:compile preGoal
    [echo] Compiling to C:\Projects\HP\ws-rp\axis-types/target/classes
    [echo] subProject java:compile postGoal
    [echo] mainProject java:compile postGoal

So for any goal I run from within the subproject, Maven first executes
the subproject's pre/postGoal, then executes the parent project's
pre/postGoal. I see this behavior w/ Maven 1.0, as well as Maven 1.1
top-of-tree.

This seems to be a major bug to me. Stuff in the parent project
maven.xml should only be executed when you're running maven on the
parent project. Has anyone else had this issue? Does anyone know of a
workaround?

Thanks,
Ian

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

Reply via email to