-----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>
        <groupId>postgresql</groupId>
        <artifactId>postgresql</artifactId>
        <version>8.1-404.jdbc3</version>
        <scope>compile</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: redcowdawg        Yahoo 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]

Reply via email to