Hello Geoffrey

Yeah, before I was allowing no to specify hibernate.cfg.xml because I
manually scanned for annotated classes and there was no need for it. 

Now this revision I'm trying to follow up what the ant plugin is doing, and
basically annotated classes need hibernate.cfg.xml. 

So I guess it's vote time again: do I put back the scanner for annotated
classes back on the plugin or just follow up the standards, and file an
improvement with hibernate-tools to see if this can be added to it?

Btw, if you decide to add hibernate.cfg.xml, you can basically put the
values in hbm2ddl.properties inside hibernate.cfg.xml so you wouldn't need
these two files, only one.  

And thanks for the words, just happy to be able to give something back to
the community.

Regards

Johann Reyes

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet
Sent: Wednesday, December 13, 2006 11:00 AM
To: [email protected]
Subject: [mojo-dev] [hibernate3-maven-plugin] No configurationfile in
configurationTaskProperties

It took me a while to get some time to test out the new snapshot,
but I finally had some time :)


I am using annotations for my classes and I don't have a 
hibernate.cfg.xml (I don't have a persistence.xml file either - I am 
doing everything in a Spring configuration).
This used to work, but now I get this error:


[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] src/main/resources/hibernate.cfg.xml not found within the 
project. Trying absolute path.
[INFO] No hibernate configuration file loaded.
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] No hibernate.cfg.xml configuration provided. Annotated 
classes/packages is only configurable via hibernate.cfg.xml


Here's my config:

<configurationTaskProperties>
<propertyfile>/src/main/hibernate3/hbm2ddl.properties</propertyfile>
<namingstrategy>org.hibernate.cfg.DefaultComponentSafeNamingStrategy</naming
strategy>
</configurationTaskProperties>


Should I make a
  /src/main/hibernate3/hibernate.cfg.xml
especially for the plugin (like I did with the hbm2ddl.properies)?

Thanks for your continued work and help on this list, Johann.

-- 
With kind regards,
Geoffrey De Smet


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to