Thanks Wendy, I had the same error 
The problem is the lincense to sun products, like jaxb-xjc, this is why
you can't find...  There is just available the plugin, maven-jaxb-plugin
1.0 and 1.1 if you want to use the jaxb-xjc or other sun jars you may
deploy on your local repository or in any server you have.

In fact, I have a project using ant (build.xml) using one old version of
jaxb-xjc (1.0) and other old dependences with this version. And the
file.xsd is formated to this version, if I change to a new version (I
have another project with the newest version running) a lot of problem
with the xsd interpretation happens.

And I could call the build.xml file from pom.xml using the antrun
plugin. But, as the build.xml is using the jar files dependences in a
especific directory instead of use this directory  I would like to use
the project dependences to eliminate this files from my project and work
only with maven.
I've tried to pass the maven classpath when I was calling the build.xml
from pom but it wasn't work. I don't know why.
The call to build is:
        <ant antfile="${basedir}/build.xml"     inheritRefs="true">
<target name="x" /> </ant>

But the build.xml is not recognizing the variable and
                                                Reference
maven.plugin.classpath not found


So, in fact - there are two problem. The ant script doesn't want to see
the com.sun.tools.xjc.XJCTask to call the compiler and other is the
transference of classpath between pom and build, or pom to build.

Does Someone know anything about it? 



-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 1:56 AM
To: Maven Users List
Subject: Re: pom dependences on the antrun plugin

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]


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

Reply via email to