Hi,

I have an error when trying to call an ant file from maven as in the example
on the website ( http://maven.apache.org/ant-guide/qna/antfarming.html ).
Here is my maven.xml and my build output. Can anyone help me with this?

Thanks,
-Stijn


maven.xml
========================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<project xmlns:j="jelly:core">
<preGoal name="java:compile">
 <echo message="preGoal running..."/>
    <ant:ant dir="${basedir}" antfile="build.xml"/>
</preGoal>
</project>

build output
========================================
Fatal Error [line 5, row 52]: The prefix "ant" for element "ant:ant" is not
bound.
org.apache.maven.MavenException: Error parsing plugin script
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:165
)
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:177
)
 at
org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java:479)
 at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:551)
 at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
 at org.apache.maven.cli.App.doMain(App.java:486)
 at org.apache.maven.cli.App.main(App.java:1215)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.werken.forehead.Forehead.run(Forehead.java:551)
 at com.werken.forehead.Forehead.main(Forehead.java:581)
--- Nested Exception ---
org.xml.sax.SAXParseException: The prefix "ant" for element "ant:ant" is not
bound.
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at javax.xml.parsers.SAXParser.parse(Unknown Source)
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:157
)
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:177
)
 at
org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java:479)
 at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:551)
 at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
 at org.apache.maven.cli.App.doMain(App.java:486)
 at org.apache.maven.cli.App.main(App.java:1215)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.werken.forehead.Forehead.run(Forehead.java:551)
 at com.werken.forehead.Forehead.main(Forehead.java:581)

You have encountered an unknown error running Maven. Please help us to
correct
this problem by following these simple steps:
- read the Maven FAQ at http://maven.apache.org/faq.html
- run the same command again with the '-e' parameter, eg maven -e jar
- search the maven-user archives for the error at
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
- post the output of maven -e to JIRA at
http://jira.codehaus.org/BrowseProject.jspa?id=10030 (you must sign up
first)
- run 'maven --info' and post the output as the environment to the bug above


Total time: 2 seconds
Finished at: Mon Aug 02 12:26:37 CEST 2004


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to