Either write valid xml or leave off the 'ant:', e.g. <?xml version="1.0" encoding="ISO-8859-1"?> <project xmlns:ant="jelly:ant"> <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> </project>
-- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ "Roland Berger" <[EMAIL PROTECTED]> wrote on 07/08/2003 12:09:01 AM: > 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. > > Thank you for any example how to do it better. > > Roland Berger > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >