A couple questions:

Where does "BaseObject" come from?  According to the error message, it
is not in the source tree and not on the class path.  If should be in
the source tree, there is something wrong with that source file.  If it
comes from Hibernate, you need to import the class (NOT the package) for
XDoclet to work correctly.

Do these four classes compile correctly if you skip running XDoclet?  To
do this, comment out the XDoclet stuff from your pom.xml and try "mvn
compile" again.  If they do not compile for reasons other than missing
classes that XDoclet would be providing, you need to fix these errors
before XDoclet will work without problems.  There are a number of
compile problems that XDoclet won't mind but there are some (like
unknown classes) which prevent XDoclet from being able to work properly.

-----Original Message-----
From: Srepfler Srgjan [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 18, 2005 11:42
To: Maven Users List
Subject: [M2] Xdoclet plugin and hibernate task


Hi,
I've been trying the xdoclet plugin 1.0-alpha-2 from org.codehaus.mojo ;

I've tried to compile some standard hibernate annotated classes from the

appfuse project and I'm getting this error:
Below is the pom.xml, any ideas why am I getting this error message? 
Thanks in advance, keep up the good work with maven2 and does anyone 
know will there be soon a plugin for xdoclet2?

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'xdoclet'.
[INFO] 
------------------------------------------------------------------------
----
[INFO] Building jspArt EJB Module
[INFO]    task-segment: [xdoclet:xdoclet]
[INFO] 
------------------------------------------------------------------------
----
[WARNING]
  This artifact has been relocated to javax.sql:jdbc-stdext:2.0.

[INFO] [xdoclet:xdoclet]
[INFO] Initializing DocletTasks!!!
[INFO] Executing tasks
(XDocletMain.start                   47  ) Running <hibernate/>
INFO:    Some classes refer to other classes that were not found among 
the sources or on the classpath.
         (Perhaps the referred class doesn't exist? Hasn't been 
generated yet?)
         The referring classes do not import any fully qualified classes

matching these classes.
         However, since no packages are imported, xjavadoc has assumed 
that the referred classes
         belong to the same package as the referring class. The classes
are:
C:\Documents and Settings\User 
Name\maven-projects\jspArt\jspArtEjb\src\main\java\org\appfuse\model\Add
ress.java 
--> BaseObject qualified to org.appfuse.model.BaseObject
C:\Documents and Settings\User 
Name\maven-projects\jspArt\jspArtEjb\src\main\java\org\appfuse\model\Rol
e.java 
--> BaseObject qualified to org.appfuse.model.BaseObject
C:\Documents and Settings\User 
Name\maven-projects\jspArt\jspArtEjb\src\main\java\org\appfuse\model\Use
r.java 
--> BaseObject qualified to org.appfuse.model.BaseObject
C:\Documents and Settings\User 
Name\maven-projects\jspArt\jspArtEjb\src\main\java\org\appfuse\model\Use
rCookie.java 
--> BaseObject qualified to org.appfuse.model.BaseObject
C:\Documents and Settings\User 
Name\maven-projects\jspArt\jspArtEjb\src\main\java\org\appfuse\model\Add
ress.java 
--> BaseObject qualified to org.appfuse.model.BaseObject
C:\Documents and Settings\User 
Name\maven-projects\jspArt\jspArtEjb\src\main\java\org\appfuse\model\Rol
e.java 
--> BaseObject qualified to org.appfuse.model.BaseObject
C:\Documents and Settings\User 
Name\maven-projects\jspArt\jspArtEjb\src\main\java\org\appfuse\model\Use
r.java 
--> BaseObject qualified to org.appfuse.model.BaseObject
C:\Documents and Settings\User 
Name\maven-projects\jspArt\jspArtEjb\src\main\java\org\appfuse\model\Use
rCookie.java 
--> BaseObject qualified to org.appfuse.model.BaseObject
[INFO] Executed tasks
[INFO] 
------------------------------------------------------------------------
----
[INFO] BUILD SUCCESSFUL
[INFO] 
------------------------------------------------------------------------
----
[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Nov 18 17:37:15 CET 2005
[INFO] Final Memory: 3M/7M
[INFO] 
------------------------------------------------------------------------
----



here is my project's pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>it.sigmalab.jspart</groupId>
  <artifactId>jspArtEjb</artifactId>
  <packaging>ejb</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>jspArt EJB Module</name>
  <url>http://www.sigmalab.net/jspart</url>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>xdoclet-maven-plugin</artifactId>
          <groupId>org.codehaus.mojo</groupId>
          <version>1.0-alpha-2</version>
          <executions>
            <execution>
              <goals>
                <goal>xdoclet</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <tasks>
              <hibernatedoclet destdir="${basedir}/src">
                <!-- <fileset 
dir="${basedir}/src/main/java/net/sigmalab/jspart/model" 
includes="**/*.java"/>  -->
                <fileset 
dir="${basedir}/src/main/java/org/appfuse/model" includes="**/*.java"/>
                <hibernate version="3.0"/>
              </hibernatedoclet>
            </tasks>
          </configuration>
        </plugin>
        <!-- <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <executions>
            <execution>
              <phase>generate-sources</phase>
              <configuration>
                <tasks>
                  <echo>bu</echo>
                </tasks>
              </configuration>
              <goals>
                <goal>run</goal>
              </goals>
            </execution>
          </executions>
        </plugin> -->
        <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
           <configuration>
               <source>1.5</source>
               <target>1.5</target>
           </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate</artifactId>
      <version>3.0.5</version>
    </dependency>
    <dependency>
      <groupId>springframework</groupId>
      <artifactId>spring</artifactId>
      <version>1.2.5</version>
    </dependency>
    <dependency>
      <groupId>commons-dbcp</groupId>
      <artifactId>commons-dbcp</artifactId>
      <version>1.2.1</version>
    </dependency>
    <dependency>
      <groupId>postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <version>8.0-312.jdbc3</version>
    </dependency>
  </dependencies>
</project>


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