Cannot execute Diff because Liquibase cannot find database driver from the url hibernate:hibernate.cfg.xml

Hello all,


I am having difficulty trying to look for a solution to execute the diff command on my project. Below is the output I get when I try to run execute diff:


“C:\Program Files\Java\jdk1.7.0_25\bin\java” “-Dmaven.home=C:\Program Files\apache-maven-3.0.5” “-Dclassworlds.conf=C:\Program Files\apache-maven-3.0.5\bin\m2.conf” -Didea.launcher.port=7533 “-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.3\bin” -Dfile.encoding=UTF-8 -classpath “C:\Program Files\apache-maven-3.0.5\boot\plexus-classworlds-2.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.3\lib\idea_rt.jar” com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --fail-fast --strict-checksums org.liquibase:liquibase-maven-plugin:3.0.0-rc2:diff

[INFO] Scanning for projects…

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Hibernate Project 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] — liquibase-maven-plugin:3.0.0-rc2:diff (default-cli) @ jnguyen.project —

[INFO] ------------------------------------------------------------------------

[INFO] Executing on Database: jdbc:mysql://localhost:3306/test

INFO 6/21/13 11:43 AM:liquibase: Successfully released change log lock

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 2.325s

[INFO] Finished at: Fri Jun 21 11:43:26 CDT 2013

[INFO] Final Memory: 10M/306M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.0.0-rc2:diff (default-cli) on project jnguyen.project: Error setting up or running Liquibase: java.lang.RuntimeException: Cannot find database driver: Driver class was not specified and could not be determined from the url (hibernate:src/main/resources/hibernate.cfg.xml) -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


Process finished with exit code 1



Here is the plugin in the pom.xml for the liquibase-maven-plugin:



        ${project.artifactId}

       

           

                org.liquibase

                liquibase-maven-plugin

                3.0.0-rc2

               

                    db/ddl/diffchangelog.xml

                    db/ddl/changelog.xml

                    com.mysql.jdbc.Driver

                    jdbc:mysql://localhost:3306/test

                    root

                    rootpass

                    hibernate:src/main/resources/hibernate.cfg.xml

                    false

                    script.sql

               

           

       


   


Thank you

I thought it would help to show the dependencies that I have too:



       

            org.codehaus.grepo

            grepo-query-hibernate

            1.5.3

       


       

            javax.transaction

            jta

            1.1

       


       

            teamdev

            slf4j-api

            1.5.8

       


       

            org.slf4j

            slf4j-log4j12

            1.7.5

       


       

            javax.persistence

            persistence-api

            1.0-rev-1

       


       

            org.codehaus.mojo.hibernate3

            maven-hibernate3

            2.2

            pom

       


       

            org.liquibase

            liquibase-core

            3.0.0-rc2

       


       

            mysql

            mysql-connector-java

            5.1.25

       


       

            org.hibernate

            hibernate-core

            4.2.2.Final

       


       

            org.apache.commons

            org.apache.commons.logging

            1.0.4.v200706111724

       


       

            log4j

            log4j

            1.2.17

       


       

            net.customware.liquibase

            liquibase-hibernate

            2.1.0

       


       

            org.apache.maven.plugin-tools

            maven-plugin-tools-api

            3.2

       


       

            org.apache.derby

            derby

            10.8.2.2

       


       

            org.hibernate

            hibernate-envers

            4.2.2.Final

       


   




Thank you