title: Cannot find database driver: org.postgresql.Driver
body: <p>Im trying to change a project a bit, by upgrading it with Liquibase. Its a Java EE project. So im using the liquibase-maven-plugin.</p>
  
  <p>So far i have in my pom.xml:</p>
  
  <pre><code>            &lt;plugin&gt;
                  &lt;groupId&gt;org.liquibase&lt;/groupId&gt;
                  &lt;artifactId&gt;liquibase-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.0.5&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;propertyFileWillOverride&gt;true&lt;/propertyFileWillOverride&gt;
                      &lt;propertyFile&gt;src/main/resources/liquibase.properties&lt;/propertyFile&gt;
                      &lt;changeLogFile&gt;src/main/resources/changelogs/changelog.xml&lt;/changeLogFile&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;!--  Another Error: plugin execution not covered by lifecycle configuration..--&gt;
                          &lt;!-- &lt;phase&gt;process-resources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;update&lt;/goal&gt; &lt;/goals&gt; --&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  </code></pre>
  
  <p>which already includes a Driver:</p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;postgresql&lt;/groupId&gt;
              &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
              &lt;version&gt;9.1-901-1.jdbc4&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>the liquibase.properties file has the url, username, password, the changeLogFile-Path and the driver:</p>
  
  <pre><code>#liquibase.properties
  driver: org.postgresql.Driver
  </code></pre>
  
  <p>But it does not have a classpath for the driver. Do I need the classpath as well?</p>
  
  <p>The changelog.xml has a simple changeset which creates a table, just to test liquibase for the beginning.</p>
  
  <p>But I dont come so far, because when I run the project with</p>
  
  <pre><code>mvn liquibase:update
  </code></pre>
  
  <p>Im getting this error:</p>
  
  <p>[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:2.0.5:update (default-cli) on project PROJECT: Error setting up or running Liquibase: java.lang.RuntimeException: Cannot find database driver: org.postgresql.Driver</p>
  
  <p>I cant see the point.. The driver has been already been used before with the project. So why cant liquibase find it?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>When i edit my configuration in the pom.xml by adding the driver tag it works:</p>
  
  <pre><code>            &lt;configuration&gt;
                  &lt;propertyFileWillOverride&gt;true&lt;/propertyFileWillOverride&gt;
                  &lt;propertyFile&gt;src/main/resources/liquibase.properties&lt;/propertyFile&gt;
                  &lt;changeLogFile&gt;src/main/resources/changelogs/changelog.xml&lt;/changeLogFile&gt;
                  &lt;driver&gt;org.postgresql.Driver&lt;/driver&gt;
              &lt;/configuration&gt;
  </code></pre>
  
  <p>before that my driver was specified in liquibase.properties, which should actually work as well. </p>
  
  <p>maybe someone can tell me how the liquibase.properties file should look like if i´d like to keep the driver in the properties file.</p>