Hi
It is compatible but, before using ant tags, you should add in your maven xml these lines:


<project default="whatevergoal..."
*  xmlns:ant="jelly:ant"*
 xmlns:license="license"
 xmlns:maven="jelly:maven">

And then, if you want to call ant on a file, you would do it like this:

<ant:ant antfile="build.xml" target="properties" />

Hope it helps
Eric.


[EMAIL PROTECTED] wrote:

I have a project which is almost cloned from Turbine 2.2.1 TDK sample. I
tried to convert the build from ant to maven. The quickest way as I
perceived is, besides creating a project.xml, to call build.xml from
maven.xml as follows:



<project default="run-ant">

 <goal name="run-ant">

   <ant antfile="build.xml" target="init"/>

 </goal>

</project>



When I run "ant init" it works, but when I run maven it gives following
error:

BUILD FAILED

File...... C:\Documents and
Settings\FWen\jbproject\turbine\webapps\testproj\WEB-INF

\build\maven.xml

Element... ant

Line...... 3

Column.... 45

C:\webapps\testproj\WEB-INF\lib not found.

Total time: 6 seconds

Finished at: Tue Jun 22 10:12:37 PDT 2004



Apparently there is a path mis-config in maven. But I don't understand why
the error only happens in maven, not in ant. Isn't maven supposed to be
compatible with ant?





Fred Wen

604-609-6491









Reply via email to