db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Osborne" <paul.osbo...@morley-computing.co.uk>
Subject RE: how do I define db driver path?
Date Sat, 19 Feb 2005 20:17:25 GMT
Hi Jon
Have you defined the mysql driver in your ./project.xml? If not, you need an
entry that looks something like:
	...
	<dependencies>
		<dependency>
			<groupId>mm-mysql</groupId>
			<artifactId>mm-mysql</artifactId>
			<version>2.0.13-bin</version>
			<url>http://www.ibiblio.org/maven/mm-mysql/</url>
			<!-- include in WAR file (optional) -->
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>
	...
	</dependencies>
	...
This will get Maven to download the module into your repository and add the
necessary classes to the torque-plugin classpath.
http://www.ibiblio.org/maven/mm-mysql/jars/ shows the various versions for
download.
Hope this helps.
Paul 

-----Original Message-----
From:
torque-user-return-5814-paul.osborne=morley-computing.co.uk@db.apache.org
[mailto:torque-user-return-5814-paul.osborne=morley-computing.co.uk@db.apach
e.org] On Behalf Of Jonathan August
Sent: 19 February 2005 08:07
To: torque-user@db.apache.org
Subject: how do I define db driver path?


I'm having a real hard time figuring out how to get torque working.  
I'm following the tutorial and I get this error when I run:

maven torque:create-db

BUILD FAILED
File...... 
/Users/jon/.maven/cache/maven-torque-plugin-3.1.1/plugin.jelly
Element... sql
Line...... 394
Column.... 44
Class Not Found: JDBC driver org.gjt.mm.mysql.Driver could not be loaded

How do I tell maven where my driver is?  It's in my classpath...

	-Jon
	


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message