I think "path" should be "location" in the part using getDependencyPath?

You can echo out the results of getDependencyPath to ensure you are
getting what you expected.

- Brett


On Wed, 15 Dec 2004 15:49:12 -0500, David Smiley <[EMAIL PROTECTED]> wrote:
> Hello.  I'm currently using JBoss.net which adds functionality to
> ejbdoclet via a <jbossnet> tag underneath <ejbdoclet>.  I can't use the
> Maven XDoclet plugin because it doesn't process the <jbossnet> tag, so
> I'm resorting to using the XDoclet's Ant tags in my maven.xml.  My
> challenge here is to avoid listing the internal dependencies of XDoclet
> (xdoclet, xjavadoc, commons-collections, commons-logging).  One doesn't
> have to do that with the Maven XDoclet plugin because the plugin can
> internally specify the dependencies in it's own project.xml.  So my idea
> on how to solve this is by only [directly] depending on the Maven
> XDoclet plugin in my project.xml and then using the
> plugin.getDependencyPath('xdoclet') magic I have seen.  I don't know
> where those magic methods are documented.  So I use that path reference
> in my <taskdef> in my maven.xml before I use <ejbdoclet>.  Here's the
> relevant piece of my maven.xml:
> 
>     <goal name="wsr:wsr">
>        <!-- first generate the web-service.xml file via xdoclet -->
>        <taskdef name="ejbdoclet"
> classname="xdoclet.modules.ejb.EjbDocletTask">
>           <classpath>
>              <path refid="maven.dependency.classpath"/>
>              <pathelement
> path="${plugin.getDependencyPath('xdoclet:ejbdoclet')}"/>
>           </classpath>
>        </taskdef>
>        <ejbdoclet
>           destdir="${maven.build.dir}">
>           <fileset dir="../staffplan-ejb/src/java">
>               <include name="**/*.java"/>
>           </fileset>
> 
>           <jbossnet webDeploymentName="StaffPlanIndividual"
>              prefix="staffplan"
>              destdir="${maven.build.dir}/META-INF"
>              targetNameSpace="http://staffplan.mitre.org/"/>
> 
>        </ejbdoclet>
>        <!-- next package it up -->
>        <attainGoal name="jar:jar" />
>     </goal>
> 
> Unfortunately, this doesn't work.  It fails with:
>    taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> I've run this with the -X switch but it hasn't eluminated anything for me.
> 
> Any ideas?
> 
> ~ David Smiley
>    MITRE
> 
> ---------------------------------------------------------------------
> 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