Thanks. --Venkat.
-----Original Message----- From: Craig S. Cottingham [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:38 PM To: Maven Users List Subject: Re: preGoal not invoked On Tue, 2004-04-13 at 11:25, Sonnathi, Venkat wrote: > I have the following maven.xml: > ------------maven.xml------------ > <project default="foobar-dist" > xmlns:m="jelly:maven" > xmlns:ant="jelly:ant" > xmlns:j="jelly:core"> > > <goal name="foobar-dist"> > <attainGoal name="war:war" /> > <preGoal name="war:webapp"> > <ant:echo>In the preGoal of war:init</ant:echo> > <ant:available property="baseWebappSourceDir" type="dir" > file="${gold.base.webapp.dir}"/> > <j:if test="${baseWebappSourceDir == 'true'}"> > <ant:copy todir="${maven.war.webapp.dir}"> > <ant:fileset dir="${gold.base.webapp.dir}"> > </ant:fileset> > </ant:copy> > </j:if> > </preGoal> > </goal> > > </project> > ------------End of maven.xml---------------- > > The preGoal is not being invoked (I don't see the ant:echo output). Can > someone please help. The <pregoal> element should be at the same level as the <goal> element, not nested inside it. -- Craig S. Cottingham [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]