Hi Mick! I confused about what you did exactly.
My configuration is not working yet.
Is your configuration working fine?
Could you send me your main pom and the sub pom of you project.
It would help me to compare with my files.
Thanks a lot.
Regards,
Roberto.


On 1/25/07, Mick Knutson <[EMAIL PROTECTED]> wrote:

I have my declaration in my PluginManagement section of my main pom then
just add this to each sub pom:

           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>xdoclet-maven-plugin</artifactId>
           </plugin>



The issue for me, is that my java files are in:
%PROJECT_HOME%\common\services\src\main\java\org\delta\provider\npi\data

but the files are put into:

%PROJECT_HOME%\common\common-jar\src\main\resources\org\delta\provider\npi\data


here is the main declaration:

               <plugin>
                   <groupId>org.codehaus.mojo</groupId>
                   <artifactId>xdoclet-maven-plugin</artifactId>
                   <executions>
                       <execution>
                           <phase>generate-sources</phase>
                           <goals>
                               <goal>xdoclet</goal>
                           </goals>
                           <configuration>
                               <tasks>
                                   <hibernatedoclet
destdir="${basedir}/src/main/resources"

mergedir="${basedir}/src/main/resources"

excludedtags="@version,@author,@todo,@see,@desc"
                                                    verbose="true">
                                       <fileset
dir="${basedir}/src/main/java">
                                           <include name="**/*.java"/>
                                       </fileset>
                                       <hibernate version="3.0"/>
                                   </hibernatedoclet>
                               </tasks>
                           </configuration>
                       </execution>
                   </executions>
               </plugin>





On 1/25/07, Roberto UserList <[EMAIL PROTECTED]> wrote:
>
> Hi all ! I've been facing a problem running xdoclet-maven-plugin, in
order
> to generate hibernate xml files.
> Can anyone help me?
> Thanks in advance for the help.
> Regards,
> Roberto.
>
> Here is the pom.xml of one of the subprojcts:
> <project>
> . . .
> <plugins>
>   <plugin>
>    <groupId>org.codehaus.mojo</groupId>
>    <artifactId>xdoclet-maven-plugin</artifactId>
>    <executions>
>     <execution>
>      <phase>generate-sources</phase>
>      <goals>
>       <goal>xdoclet</goal>
>      </goals>
>      <configuration>
>      <tasks>
>       <hibernatedoclet destdir="${basedir}/target/classes"
>              mergedir="${basedir}/src/mergemodel"
>              excludedtags="@version,@author,@todo,@see"
>              verbose="true">
>        <sourceDirectory>${basedir}/src</sourceDirectory>
>        <fileset        dir="src">
>         <include name="**/*.java"/>
>         <exclude name="**/LDAPDAO.java"/>
>         <exclude name="**/SBPermissaoBean.java"/>
>        </fileset>
>        <hibernate version="3.0"/>
>       </hibernatedoclet>
>      </tasks>
>      </configuration>
>     </execution>
>    </executions>
>   </plugin>
> </plugins>
> </project>
>
>
> Here is the log messages:
>
> [DEBUG] -- end configuration --
> [INFO] [xdoclet:xdoclet {execution: default}]
> [INFO] Initializing DocletTasks!!!
> [INFO] Executing tasks
> [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing ant tasks
>
> Embedded error: Can't create a sourcedirectory element under
> hibernatedoclet. Make sure the jar file containing the corresponding
> subtask
> class is on the classpath specified in the <taskdef> that defined {2}.
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
> ant
> tasks
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:559)
>         at
>
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:475)
>         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (
> DefaultLifecycleExecutor.java:454)
>         at
>
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:306)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
>
>


--
Thanks

DJ MICK

(Mick Knutson)
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com


Reply via email to