I was having similar problems at one time, and I never really figured out why. I did decide to use a single entity include in all my subprojects which used XDoclet, hoping that once I got it right all the project/subprojects would work.
This solution works for me, here's a view from a subproject example


<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Define references to files containing common targets -->
<!DOCTYPE project [
<!ENTITY xdoclet-common SYSTEM "file:${basedir}/../xdoclet-commons.ent">
<!ENTITY jboss-common SYSTEM "file:${basedir}/../jboss-commons.ent">
<!ENTITY hibernate-common SYSTEM "file:${basedir}/../hibernate-includejars-commons.ent">
]>
<project>
<extend>${basedir}/../project.xml</extend>
<!-- the version of maven's project object model -->
<pomVersion>3</pomVersion>


 <!-- a unique name for this project -->
 <id>hiberstuff</id>

 <!-- a short but descriptive name for the project -->
 <name>EIS Project</name>

 <!-- The version of the project under development, e.g.
      1.1, 1.2, 2.0-SNAPSHOT -->
 <currentVersion>1.0</currentVersion>


<!-- jar files the project is dependent on --> <dependencies> &xdoclet-common; &jboss-common; &hibernate-common; ... </dependencies> .... </project>

-----------------------------------------------

xdoclet-commons.ent sits in the project root directory and contains the following:


<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>

----------------------------------------
I hope this works for you too, it was a mysterious and frustrating problem for me until I did it this way.


Frederic Gedin wrote:

Kevin Hagel a écrit :

that method of declaring dependencies is the "old" method ... though certainly this may not be the problem.

give this a try:
<dependency>
<groupId>xdoclet</groupId>
<artifactId>xdoclet-web-module</artifactId>
<version>1.2</version>
</dependency>

What does your repository look like, do you know for sure that the XDoclet jars are installed?


Hi

Unfortunately, using the new method for declaring dependencies did not change the result.
My maven repository contains the xdoclet jars:


ls ~/.maven/repository/xdoclet/jars/
xdoclet-1.2.jar xdoclet-web-module-1.2b2.jar.md5
xdoclet-1.2.jar.md5 xdoclet-web-module-1.2.jar
xdoclet-ejb-module-1.2b2.jar xdoclet-xdoclet-module-1.2b2.jar
xdoclet-ejb-module-1.2b2.jar.md5 xdoclet-xdoclet-module-1.2b2.jar.md5
xdoclet-hibernate-module-1.2b2.jar xdoclet-xdoclet-module-1.2.jar
xdoclet-hibernate-module-1.2b2.jar.md5 xdoclet-xdoclet-module-1.2.jar.md5
xdoclet-web-module-1.2b2.jar


Regards

Frédéric




------------------------------------------------------- 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_id70&alloc_id638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to