Re: classpaths and more hibernate foo

2006-03-28 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter L. Berghold wrote:

 
 mvn hibernate:schema-export
 
 



Actually, that command line is

mvn hibernate3:schema-export


Odd thing is when it is done spewing maven tells me the build was a
success. :-O



- --

Peter L. Berghold [EMAIL PROTECTED]
Those who fail to learn from history are condemned to repeat it.
AIM: redcowdawgYahoo IM: blue_cowdawg  ICQ: 11455958
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFEKT/9UM9/01RIhaARAh56AJoC+iz1oEHw2/HfdRfae1tXbX4hGACfS+Wq
ULWDR2Oc3Aotd/m9LxLVETo=
=QEZs
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: classpaths and more hibernate foo

2006-03-28 Thread Johann Reyes
Hello Peter

For the jdbc drivers, you need to use it as an extension for it to be
available to hibernate as described here:

http://mojo.codehaus.org/hibernate3-maven-plugin/howto.html

Regards

Johann Reyes

-Original Message-
From: Peter L. Berghold [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 8:38 AM
To: users@maven.apache.org
Subject: classpaths and more hibernate foo

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

OK,

So I've gotten the hibernate plug-in doing some stuff for me.  I've got
it creating POJOS from foo.hbm.xml files and I have it creating
hibernate.cfg.xml from my database.properties files and the various
foo.hbm.xml files.

Groovy.

So now I want to create my schema, I invoke

mvn hibernate:schema-export


I and see lots of spew and somewhere buried in there is a message saying:

java.sql.SQLException: No suitable driver

What? That's crazy talk!

I check my pom.xml file and sure enough I have

dependency
groupIdpostgresql/groupId
artifactIdpostgresql/artifactId
version8.1-404.jdbc3/version
scopecompile/scope
/dependency

among other dependencies that I feel my project has. I do some reading
and I read on the maven website under scope the following:
Compile dependencies are available in all classpaths.

OK: I'm thick-headed... what am I missing here? Shouldn't the postgres
JDBC drivers be available to the schema export task? What's the magic
foo that makes it so?


- --

Peter L. Berghold [EMAIL PROTECTED]
Those who fail to learn from history are condemned to repeat it.
AIM: redcowdawgYahoo IM: blue_cowdawg  ICQ: 11455958
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFEKTw2UM9/01RIhaARAhVAAJ0ewh45+mg8VBxrIU7nGWL60wLMmQCgrY31
7ZJpQ84oDwFsW3LE7ZUi2aM=
=UeEJ
-END PGP SIGNATURE-




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: classpaths and more hibernate foo

2006-03-28 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johann Reyes wrote:
 
 
 http://mojo.codehaus.org/hibernate3-maven-plugin/howto.html
 

Just to be sure of myself here, from what I read here I should have
inside my build.../build block I should have:

extensions
  extension
groupIdpostgresql/groupId
artifactIdpostgresql/artifactId
version8.1-404.jdbc3/version
  /extension
/extensions




and it should be happy?


- --

Peter L. Berghold [EMAIL PROTECTED]
Those who fail to learn from history are condemned to repeat it.
AIM: redcowdawgYahoo IM: blue_cowdawg  ICQ: 11455958
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFEKVJWUM9/01RIhaARAkzKAKChyGCp4j0MCf9Mc52E69/pasu95ACgys5j
72AICWFN6jcl3A0QfnUn4XI=
=USH2
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]