Hi,

I faced similar issues while trying to get the maven xdoclet plugin working. from my experience, XDoclet messages aren't really usable to debug your scripts... Try to run maven with -X or -e option to find the Root cause of the BUILD FAILED such as an unsatisfied dependency.

I ended up declaring the following dependencies to get the classes, ejb-jar.xml and jboss.xml generation process working in my project.xml. Notice that I'm not using webdoclet but anyway, it is necessary to have it in your deps :/

<
<dependency>
  <groupId>commons-logging</groupId>
  <artifactId>commons-logging</artifactId>
  <version>1.0.2</version>
</dependency>
<dependency>
  <groupId>j2ee</groupId>
  <artifactId>j2ee</artifactId>
  <version>1.4</version>
</dependency>
<dependency>
  <groupId>xdoclet</groupId>
  <artifactId>xjavadoc</artifactId>
  <version>1.0.2</version>
</dependency>
<!-- The following dependencies are required to use ejbdoclet and generate
     jboss-xml and jaws.xml deployment descriptors for JBoss -->
<dependency>
  <id>xdoclet+ejb-module</id>
  <version>1.2b4</version>
</dependency>
<dependency>
  <id>xdoclet+jboss-module</id>
  <version>1.2b4</version>
</dependency>
<!-- Those one are needed because jboss-module depends on it -->
<dependency>
  <id>xdoclet+jmx-module</id>
  <version>1.2b4</version>
</dependency>
<dependency>
  <id>xdoclet+web-module</id>
  <version>1.2b4</version>
</dependency>


BTW, I use a maven-xdoclet-plugin-1.2.jar built from xdoclet's HEAD.


Hope this helps,

-- Pascal


Marco Tedone wrote: > Hi, I'm just starting to use the Maven plugin to build the EJBs. > > I declared the xdoclet plugin as follows: > > <dependency> > <groupId>xdoclet</groupId> > <artifactId>maven-xdoclet-plugin</artifactId> > <version>1.2</version> > <type>plugin</type> > <url>http://xdoclet.sourceforge.net/</url> > </dependency> > > I've got also the following dependencies in my project: > > <dependency> > <groupId>xdoclet</groupId> > <artifactId>xdoclet</artifactId> > <version>1.2</version> > <url>http://xdoclet.sourceforge.net/</url> > </dependency> > <dependency> > <groupId>xdoclet</groupId> > <artifactId>xdoclet-ejb-module</artifactId> > <version>1.2</version> > <url>http://xdoclet.sourceforge.net/</url> > </dependency> > <dependency> > <groupId>xdoclet</groupId> > <artifactId>xdoclet-jboss-module</artifactId> > <version>1.2</version> > <url>http://xdoclet.sourceforge.net/</url> > </dependency> > <dependency> > <groupId>xdoclet</groupId> > <artifactId>xdoclet-jmx-module</artifactId> > <version>1.2</version> > <url>http://xdoclet.sourceforge.net/</url> > </dependency> > > However, when I run > > maven xdoclet:ejbdoclet I obtain the following exception: > > BUILD FAILED > File...... file:/C:/Documents and > Settings/mtedone/.maven/plugins/maven-xdoclet-plugin-1.2/ > Element... taskdef > Line...... 5746 > Column.... 81 > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found > Total time: 4 seconds > Finished at: Sun Mar 14 19:26:09 GMT 2004 > > Obviously the EjbDocletTask class is not in the classpath, although I > declared it as a dependency. How could I solve this problem? > > Many thanks, > > Marco > > > > --------------------------------------------------------------------- > 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