Maven, Hibernate & Derby [message #568570] |
Tue, 17 March 2009 21:47 |
jon hanson Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi,
I'm attempting to use the IAM plugin to invoke a Maven project which runs
the Mojo Hibernate plugin to create some Derby DB tables from some
annotated Java POM classes.
My pom.xml works if i invoke Maven from the command line, e.g. mvn
package, however from within Eclipse i get the following error:
17/03/09 21:28:26 GMT: [INFO] [hibernate3:hbm2ddl]
17/03/09 21:28:26 GMT: [INFO] Configuration XML file loaded:
file:/G:/dev/workspace/testdb/src/main/resources/hibernate.c fg.xml
17/03/09 21:28:26 GMT: [INFO] Configuration XML file loaded:
file:/G:/dev/workspace/testdb/src/main/resources/hibernate.c fg.xml
17/03/09 21:28:27 GMT: [INFO] No hibernate properties file loaded.
17/03/09 21:28:27 GMT: [WARN] 1 errors occurred while performing <hbm2ddl>.
17/03/09 21:28:27 GMT: [ERROR] Error #1: java.sql.SQLException: No
suitable driver found for jdbc:derby://localhost:1527/testdb;create=true
I'm guessing this is because the derbyclient.jar, which contains the Derby
JDBC driver, isn't being found. However, my pom.xml file has this:
<build>
<extensions>
<extension>
<groupId>org.apache.derby</groupId>
<artifactId>derbyclient</artifactId>
<version>10.4.2.0</version>
</extension>
which I believe is supposed to address this (when running from the command
line at least). Indeed, if i remove it then i get the same error when
building from the command line.
Any idea how i might fix this? I guess adding the derbyclient.jar to the
classpath used by Eclipse might fix this however that seems a bit drastic.
thanks,
Jon
|
|
|
Powered by
FUDForum. Page generated in 0.03196 seconds