On Wednesday 06 Aug 2003 15:09, Roland Berger wrote:
> Hi all
>
> Everywhere I can read that it is easy to call an ant target from maven.xml
> but after all I did not find an example.
> I tried it the following way:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <goal name="enhance">
> <ant:java fork="yes" failonerror="yes" output="enhancer.out"
> classname="com.signsoft.ibo.enhancer.Main"
> classpathref="project.class.path">
> <arg line="-s classes -d enhanced -v:info"/>
> </ant:java>
> </goal>
>
> All I get is:
>
> Fatal Error [line 3, row 143]: The prefix "ant" for element "ant:java" is
> not bound.
Try adding
xmlns:ant="ant"
within the <project> tag of your maven.xml, so it uses the ant plugin for the
ant:java task.
e.g
<project xmlns:ant="ant">
<goal name="enhance">
...
</goal>
</project>
--
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]