maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Jefferson <a...@ajsoft.net>
Subject Re: howto call ant task from maven.xml
Date Wed, 06 Aug 2003 14:31:27 GMT
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message