Missing dependency, all problems went away once I added the following to my project.xml

  <dependency>
     <groupId>xdoclet</groupId>
     <artifactId>xdoclet-web-module</artifactId>
     <version>1.2</version>
  </dependency>

without this, ejbdoclet fails silently. Any idea why ejbdoclet needs the web module? My source contains no web related code.

cheers
Nathan

Marco Mistroni wrote:

Hi,
Well, I m not using ejbdoclet but I m successfully
Using webdoclet & hibernatedoclet, thus I assume I could help
Let's see..
Have u:
- put ejbdoclet jar from xdoclet into ur MAVEN_HOME/lib?
- have u put dependencies for the ejbdoclet in ur project.xml?
- u can safely use maven:ejbdoclet in your maven.xml (anyone correct me
if I m wrong) as
long as u define some properties (in your project.properties). The
specific properties that you have to define are listed on the xdoclet
website, or alternatively you can open the plugin.jelly of the maven
plugin
to see the properties that you need to include


hope this helps

regards
        marco



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nathan
Coast
Sent: 28 June 2004 08:27
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] maven xdoclet problem

ignore me, it didn't fix the problem at all, the workaround I have is to
add

<properties>
   <classloader>root</classloader>
</properties>

elements to the plugins dependencies, this is a deprecated maven feature, so not a good solution.

Nathan Coast wrote:


apologies if this is a duplicate

Hi,

I've been trying to use the maven plugin to generate ejb classes but

I'm


getting the following error.

taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found

http://maven.apache.org/faq.html#classloader-property
according to the maven docs, taskdefs should be defined as follows

<ant:taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask">
<ant:classpath>
<ant:path refid="maven.dependency.classpath"/>
<ant:pathelement

location="${plugin.getDependencyPath('xdoclet')}"/>

<ant:pathelement location="${plugin.getDependencyPath('xdoclet:xjavadoc')}"/>
<ant:pathelement location="${plugin.getDependencyPath('xdoclet:xdoclet-module')}"/>
<ant:pathelement location="${plugin.getDependencyPath('commons-collections')}"/>
<ant:pathelement location="${plugin.getDependencyPath('commons-logging')}"/>
<ant:pathelement location="${plugin.getDependencyPath('log4j')}"/>
</ant:classpath>
</ant:taskdef>


this fixed the problem

cheers
Nathan




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user






-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user





-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to