You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Konrad <kh...@yahoo.com> on 2003/10/07 21:20:40 UTC
ClassNotFoundException - using custom Ant task from Maven?
Hello.
I'm trying to run a custom Ant ask from
Maven1.0-beta10 and I keep getting a
ClassNotFoundException. Here is my maven.xml and
project.xml:
maven.xml
---------
<project xmlns:ant="jelly:ant">
<goal name="convert">
<ant:taskdef
name="convert"
classname="convert.Convert"/>
<ant:convert destDir="${basedir}/src/webapp">
<fileset dir="${basedir}/src/html">
<include name="**/*.htm*"/>
</fileset>
</ant:convert>
</goal>
</project>
project.xml
-----------
<project>
...
<dependencies>
<dependency>
<id>convert</id>
<version>1.0</version>
</dependency>
</dependencies>
...
</project>
When I moved the convert-1.0.jar to MAVEN_HOME/lib and
include a reference to it in
MAVEN_HOME/bin/forehead.conf, then it runs... :|
Do I need to create a new plugin for my Ant task?
Any advice would be greatly appreciated.
Thank you.
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org