-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: schema-export with maven not running
PostPosted: Thu Jan 13, 2005 12:46 pm 
Newbie

Joined: Wed Jan 12, 2005 8:17 pm
Posts: 5
Hibernate version: 2.1.7

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

I am trying to use Maven as a build tool. I would like to integrate with the schema-export as well. When I run > maven hibernate:schema-export
it complaint about I didnt set the property hibernate.dialect
BUILD FAILED
File...... C:\Documents and Settings\elong\.maven\cache\maven-hibernate-plugin-1
.2\plugin.jelly
Element... h:schema-export
Line...... 55
Column.... 53
The dialect was not set. Set the property hibernate.dialect.

I did try to put the hibernate.properties file anywhere of my project path. I also set the dialect in the hibernate.cfg.xml I would like to know what else I am missing? thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 5:20 pm 
Newbie

Joined: Wed Jan 12, 2005 8:17 pm
Posts: 5
I sovled that one ..


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 18, 2005 3:40 am 
Beginner
Beginner

Joined: Wed Mar 03, 2004 6:02 am
Posts: 46
Location: Kuala Lumpur, Malaysia
jinjo,

Could you share with me your project.properties, the bits pertaining to schema export ?

My hbm.xml and java classes are in separate directories and the maven hibernate plugin cannot find my classes for the domain objects. Thanks.

Alistair


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 01, 2005 7:25 am 
Beginner
Beginner

Joined: Thu Apr 29, 2004 4:31 am
Posts: 42
Hello,
i am having hte same problem of dialect not specified with maven 1.1 & hibernate 2.1.8

could you pls tell me how di dyou fix it?

thanks and regards
marco


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.