title: "Cannot find database driver: Driver class was not specified and could not be determined from the url" error on using liquibase-hibernate plugin
body: <p>I am trying to generate <code>changeLog</code> from <code>diff</code>s between a Database and Persistence Entities.</p>
  
  <p>I am using the liquibase hibernate plugin</p>
  
  <pre><code>&lt;plugins&gt;
      &lt;plugin&gt;
          &lt;groupId&gt;org.liquibase&lt;/groupId&gt;
          &lt;artifactId&gt;liquibase-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.4.1&lt;/version&gt;
          &lt;configuration&gt;                  
              &lt;propertyFile&gt;src/main/resources/liquibase.properties&lt;/propertyFile&gt;
          &lt;/configuration&gt; 
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.liquibase.ext&lt;/groupId&gt;
                  &lt;artifactId&gt;liquibase-hibernate4&lt;/artifactId&gt;
                  &lt;version&gt;3.5&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
                  &lt;version&gt;4.1.7.RELEASE&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-data-jpa&lt;/artifactId&gt;
                  &lt;version&gt;1.7.3.RELEASE&lt;/version&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;               
      &lt;/plugin&gt; 
  &lt;/plugins&gt; 
  </code></pre>
  
  <p>and my <code>liquibase.properties</code> goes like this</p>
  
  <pre><code>changeLogFile=classpath:liquibase-changeLog.xml
  url=jdbc:postgres://localhost:5432/oauth_reddit
  username=tutorialuser
  password=tutorialmy5ql
  driver=org.postgresql.Driver
  referenceUrl=com.sample.App
    ?dialect=org.hibernate.dialect.PostgreSQLDialect
  diffChangeLogFile=src/main/resources/liquibase-diff-changeLog.xml
  </code></pre>
  
  <p>while executing <code>mvn liquibase:diff</code>, I am getting the following error</p>
  
  <pre><code>[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.4.1:diff (default-cli) on project prototype-liquibase-migration: Error setting up or running Liquibase: liquibase.exception.DatabaseException: java.lang.RuntimeException: Cannot find database driver: Driver class was not specified and could not be determined from the url (com.sample.App?dialect=org.hibernate.dialect.PostgreSQLDialect) -&gt; [Help 1]
  </code></pre>
  
  <p>I have specified the <code>Driver</code> in the <code>liquibase</code> properties, but it seems that it is not taking.What could have I done wrong ?</p>