Thanks Henry, But what about there are other goals reside in this maven.xml with Pregoal together? For instance,
<goal name="newVersion"> <delete dir="${basedir}/target/classes"/> <attainGoal name="jar:install"/> </goal> *** <preGoal name="java:compile"> <cvs command="commit -m 'updated and checked in automatically by maven'" package="build.number" quiet="true" /> </preGoal> within the example above, I want to call goal 'newVersion'.Will Pregoal execute also?If so, before 'newVersion' or after 'newVersion'? Regards, Jason -----Original Message----- From: Henry Isidro [mailto:[EMAIL PROTECTED] Sent: 19 January 2006 09:16 To: Maven Users List Subject: Re: PreGoal ?? preGoal executes the scripts you specify before the goal named. For instance, <preGoal name="java:compile"> ... </preGoal> Anything between <preGoal> and </preGoal> would execute first and then java:compile would be executed. Regards, Henry Zheng Wen Zhe wrote: > Hi, > I have a pregoal set up among some other goals within my maven.xml file. > Why this pregoal could run automatically without being called? > Is this the nature of PreGoal? > > Regards, > Jason > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]