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