You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sonnathi, Venkat" <Ve...@contractor.thomson.com> on 2004/04/13 18:25:09 UTC
preGoal not invoked
Hi,
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.
Thanks,
--Venkat.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: preGoal not invoked
Posted by "Craig S. Cottingham" <cr...@cottingham.net>.
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
craig@cottingham.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org