On 12/14/06, Melo, Alexandre (Alexandre) <[EMAIL PROTECTED]> wrote:

I'm trying to call a task using antrun plugin but for this task I would
like to use the pom's dependences in the classpath.
The error returned is: Caused by: taskdef class
com.sun.tools.xjc.XJCTask cannot be found   ( this is from jaxb-xjc.jar
in the dependency)

I can't find jaxb-xjc version 1.0, but trying it with
openejb:jaxb-xjc:2.0EA3, I can get a different error by putting the
<dependency> inside the <plugin> element.  So,
<plugin><dependencies><dependency> for the antrun plugin.

With that, I get:
  Embedded error: Could not create task or type of type: target.
  Ant could not find the task or a class this task relies upon.
instead of
 Embedded error: taskdef class com.sun.tools.xjc.XJCTask cannot be found

I'm not sure if that's progress. :)

I also ran across this jaxb plugin while searching for the jar:
  https://jaxb.dev.java.net/jaxb-maven2-plugin/

HTH,
--
Wendy

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

Reply via email to