Hi Folks,

I've writen a POJO to do something useful and wanted to use it as part of my
build. So I thought I'd try and kick it off form the maven.xml.

So, I did something similar to this;

   <goal name="myGoal">
       <j:jelly xmlns:j="jelly:core" xmlns:define="jelly:define"
xmlns:my="myTag">
           <define:taglib uri="myTag">
               <define:jellybean name="foo" className="com.foo.MyTask"
                   method="execute"/>
             </define:taglib>
           <my:foo x="x" outputDir="docs" />
       </j:jelly>
   </goal>

But I get ClassNotFoundException for com.foo.MyTask, which I guess is
reasonable as I havn't set the classpath. I spotted you can add a
Classloader attribute to the jellybean element, but I wouldn't know what to
set this to...

So, can I call Java from maven.xml or do I have to create a new plugin?

I don't want to create a new maven plugin if I can help it (I want this
utility class as part of my application rather than a seperate source tree).

Thanks in advance,
--
Toby

Reply via email to