Hello Lally Hmm everything looks fine, might be that there is no class compiled in your target directory? Try running the plugin as follows:
mvn compile hibernate3:hbm2ddl If this doesn't work, could you send me the annotated file to run some tests on it. Regards Johann Reyes -----Original Message----- From: Lally Singh [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 4:03 PM To: [email protected] Subject: [mojo-user] Basic Hibernate3/Annotations setup Hey all, I must be completely lost. The hibernate3 plugin has stopped complaining, but the generated schema.sql file is empty :-(. The setup is as such: I have some starting annotations set up in edu.vt.iddl.meval.schema.SequencePoint I've copy-pasted next to anything I could from the hibernate3-maven-plugin documentation, and set up a hibernate.cfg.xml file appropriately (afaik). $ mvn hibernate3:hbm2ddl Generates an empty schema.sql file. I've attached the relevant pom.xml and hibernate.cfg.xml files, and below's the output from maven. Seriously, thanks for any help. -ls [EMAIL PROTECTED] qgenerator]$ !mvn mvn hibernate3:hbm2ddl [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'hibernate3'. [INFO] ---------------------------------------------------------------------------- [INFO] Building qgenerator [INFO] task-segment: [hibernate3:hbm2ddl] [INFO] ---------------------------------------------------------------------------- [INFO] Preparing hibernate3:hbm2ddl [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] Artifact junit:junit:jar:3.8.1:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. [INFO] [hibernate3:hbm2ddl] [INFO] Configuration XML file loaded: /Users/lally/Work/School/GRA/IDDL/New_System/meval/trunk/whole/qgenerator/sr c/main/resources/hibernate.cfg.xml [INFO] Configuration XML file loaded: /Users/lally/Work/School/GRA/IDDL/New_System/meval/trunk/whole/qgenerator/sr c/main/resources/hibernate.cfg.xml [INFO] src/main/resources/database.properties not found within the project. Trying absolute path. [INFO] No hibernate properties file loaded. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 seconds [INFO] Finished at: Mon Feb 26 15:50:48 EST 2007 [INFO] Final Memory: 5M/10M [INFO] ------------------------------------------------------------------------ [EMAIL PROTECTED] qgenerator]$ !cat cat `find . -name "*.sql" -print` [EMAIL PROTECTED] qgenerator]$ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
