--- Marco Mistroni <[EMAIL PROTECTED]> wrote:

> hi all,
>   i am currently using xd2 maven plugin (i m running
> it under maven2)
> at the moment, i had generated only mapping files
> for my classes, but i was
> going to try to generate also hibernate config file

... then you should ask those questions on
xdoclet-plugin-interest
( http://www.sourceforge.bet/projects/jtec-plugin/ )
as there are the developers listening.


> with me, i have only classes tagged with hibernate
> xdoclet tags... and i was
> wondering if i could generate
> also hibernate config file by using mergedir and a
> hibernate-properties
> file..
> 
> 
> here's part of my pom.xml
> 
> configuration>
>         <configs>
>         <config>
>             <components>
>             <component>
>                 <classname>
>
org.xdoclet.plugin.hibernate.HibernateMappingPlugin</classname>
>                  <params>
>                     <version>3.0</version>
>                    
> <destdir>${project.build.outputDirectory}</destdir>
>                              </params>
>             </component>
>             </components>
>         </config>
>         <config>
>             <components>
>             <component>
>                 <classname>
>
org.xdoclet.plugin.hibernate.HibernateConfigPlugin</classname>
>                  <params>
>                 <version>3.0</version>
>                
> <destdir>${project.build.outputDirectory}</destdir>
>                
> <mergedir>${basedir}/merge</mergedir>
>                  </params>
>             </component>
>             </components>
>         </config>
>         </configs>
>     </configuration>

First correction:  place both plugins into same 
config. Thus they will be run in the same invocation

> when i run it, i get following output
> 
> Running
> org.xdoclet.plugin.hibernate.HibernateConfigPlugin
> [INFO]
>
------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
>
------------------------------------------------------------------------
> [INFO] XDoclet plugin failed: basedir
> D:\Sw\springmiddleware\springmiddleware\..
> \ngenMiddleware\target\generated-resources\xdoclet
> does not exist
> 
> 
> the hbm.xml files get generated correctly, but
> somehow the hibernate config
> is screwing up..
> 
> could anyone help me out on how to set proper
> destdir and mergedir so that ti
> can generate also the
> hibernate-cfg.xml file?

I will try ;)  Actually you do not need mergedir,
because xdoclet plugins do not define any merge points
at the moment. 

As for destdir problem, I recently ran into similar
isue on windows. It seems that java chokes  on windows
file names with backslashes, at least on \w
changind everything to straight slashes should usually
help. 


if this does not help, you can safely leave destdir
setting out, as this defaults to
{builddir}/generated-resources/xdoclet

If all this fails, file issue on generama
( see http://xdoclet.codehaus.org ),
as this actually belongs there.


regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org


 
____________________________________________________________________________________
Sponsored Link

Online degrees - find the right program to advance your career. 
www.nextag.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to