Hibernate doclet / problem in running HibernateConfig plugin

"Marco Mistroni" <[email protected]> Tue, 21 Nov 2006 18:01:42 +0000
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
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

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>


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 tha ti
can generate also the
hibernate-cfg.xml file?


thanks in advance and regards
 marco

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user