You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marc Dugger <ma...@socotech.com> on 2003/04/15 23:17:32 UTC

torque:create-db

While trying to run the goal "torque:create-db", I'm receiving a "Class Not
Found:  JDBC driver org.gjt.mm.mysql.Driver could not be loaded".  From the
plugin.properties file, I see that the create-db goal uses the
"torque-classpath" property, but how do I add the mysql jar to the
torque-classpath property?


RE: torque:create-db

Posted by Marc Dugger <md...@austin.rr.com>.
A simple answer to my own question for the archives:

Create a "maven.xml" file in the base directory of your project and add the
following:

<preGoal name="torque:insert-sql">
        <path id="torque-classpath">
            <pathelement path="${torque-classpath}"/>
            <pathelement
location="${maven.repo.local}/mm.mysql/jars/mm.mysql-2.0.7.jar"/>
        </path>
    </preGoal>

> -----Original Message-----
> From: Marc Dugger [mailto:marc@socotech.com]
> Sent: Tuesday, April 15, 2003 4:18 PM
> To: users@maven.apache.org
> Subject: torque:create-db
>
>
> While trying to run the goal "torque:create-db", I'm receiving a
> "Class Not
> Found:  JDBC driver org.gjt.mm.mysql.Driver could not be loaded".
>  From the
> plugin.properties file, I see that the create-db goal uses the
> "torque-classpath" property, but how do I add the mysql jar to the
> torque-classpath property?
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org