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