Hello Marc

Did you added you database driver dependency as extension also as described
here:

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

Regards

Johann Reyes

-----Original Message-----
From: Marc Dumontier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 17, 2006 8:19 AM
To: [email protected]
Subject: Re: [mojo-user] Re: hibernate3 plugin: no suitable driver

Hi

pretty much cut and paste from the site.

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>hibernate3-maven-plugin</artifactId>
                <version>1.0-SNAPSHOT</version>
                <configuration>
                    <hibernate>
                        
<propertyFile>/src/main/resources/hibernate.properties</propertyFile>
                    </hibernate>
                    <outputDirectory>
                        <hbm2cfgxml>src/main/resources</hbm2cfgxml>
                    </outputDirectory>
                </configuration>
            </plugin>


Geoffrey De Smet wrote:

> how did you tell the hibernate3 plugin where to find your 
> hibernate.properties?
>
> Marc Dumontier wrote, On 2006-10-17 4:22 AM:
>
>> Hi,
>>
>> I'm having trouble with the hibernate3 plugin for maven.
>> Trying to do a schema-export, but i get an SQLException ("No suitable 
>> driver found")
>>
>> I have mysql as a dependency
>>
>>    <dependency>
>>      <groupId>mysql</groupId>
>>      <artifactId>mysql-connector-java</artifactId>
>>      <version>3.1.12</version>
>>    </dependency>
>>
>>
>> here is my hibernate.properties:
>>
>> hibernate.connection.username=jcid
>> hibernate.connection.password=jcid
>> hibernate.connection.url=jdbc:mysql://localhost:3306/jcid
>> hibernate.connection.driver_class=com.mysql.jdbc.Driver
>> hibernate.dialect=org.hibernate.dialect.MySQLDialect
>> hibernate.hbm2ddl.auto=update
>>
>>
>> Any help would be great, thanks
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


!DSPAM:4534ceed53513635718161!




---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to