Fr�d�ric
Stewart, Robbe (Contractor) a �crit :
Hi Marco,
I had a similar problem trying to use xdoclet-web via the maven plugin as well. A solution I found by trawling the archives was a suggestion by Kebin Hagel (http://www.mail-archive.com/[EMAIL PROTECTED]/msg08201.html)
While I didn't follow his approach what I found was I needed to include every xdoclet module in my project.xml dependencies. Now I have it working I suppose I could go thru and comment out one module at time until it breaks to remove unneeded modules but at this stage I'm not going to stuff with something that ain't broke :)
[a snippet from my project.xml] <!-- jar files the project is dependent on --> <dependencies>
<dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet</artifactId> <version>1.2</version> </dependency>
<dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-apache-module</artifactId> <version>1.2</version> </dependency>
<dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-java-module</artifactId> <version>1.2</version> </dependency>
<dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-jdo-module</artifactId> <version>1.2</version> </dependency>
<dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-jboss-module</artifactId> <version>1.2</version> </dependency>
<dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-jmx-module</artifactId> <version>1.2</version> </dependency>
<dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-hibernate-module</artifactId> <version>1.2</version> </dependency>
<dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-web-module</artifactId> <version>1.2</version> </dependency>
<dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-xdoclet-module</artifactId> <version>1.2</version> </dependency>
<dependency> <groupId>xdoclet</groupId> <artifactId>xjavadoc</artifactId> <version>1.0.2</version> </dependency>
<dependency> <id>xdoclet+ejb+module</id> <version>1.2</version> </dependency>
<dependency> <id>servletapi</id> <version>2.3</version> </dependency>
<dependency> <id>jakarta-struts</id> <version>1.1</version> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.6.1</version> <properties> <war.bundle>true</war.bundle> </properties> </dependency>
<dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>2.1</version> <properties> <war.bundle>true</war.bundle> </properties> </dependency>
<dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <version>1.5</version> <properties> <war.bundle>true</war.bundle> </properties> </dependency>
<dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.0</version> <properties> <war.bundle>true</war.bundle> </properties> </dependency>
<dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>1.0.1</version> <properties> <war.bundle>true</war.bundle> </properties> </dependency>
<dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.3</version> <properties> <war.bundle>true</war.bundle> </properties> </dependency>
<dependency> <groupId>commons-validator</groupId> <artifactId>commons-validator</artifactId> <version>1.0.2</version> <properties> <war.bundle>true</war.bundle> </properties> </dependency>
</dependencies>
Hope this helps
Robbe Stewart
-----Original Message----- From: Marco Tedone [mailto:[EMAIL PROTECTED] Sent: Monday, 15 March 2004 6:02 AM To: XDoclet-users Subject: [Xdoclet-user] Generating EJBs with Maven
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
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
