title: Spring-boot can't find sqlite driver
body: <p>I'm trying to integrate my spring boot app (web services) with Sqlite database, but I'm stucked at the beginning.
  Due to <a href="https://docs.spring.io/spring-boot/docs/2.0.1.RELEASE/reference/htmlsingle/#boot-features-connect-to-production-database" rel="nofollow noreferrer" title="documentation">documentation</a> I had specified connection url:</p>
  <pre><code>spring.jpa.hibernate.ddl-auto=create-drop
  spring.datasource.url=jdbc:sqlite:test.db
  </code></pre>
  <p>And added dependency to apprpiate lib (with and without &quot;scope runtime&quot; result is the same):</p>
  <pre><code>&lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.0.1.RELEASE&lt;/version&gt;
      &lt;relativePath /&gt;
  &lt;/parent&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web-services&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
          &lt;artifactId&gt;lombok&lt;/artifactId&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.xerial&lt;/groupId&gt;
          &lt;artifactId&gt;sqlite-jdbc&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-configuration-processor&lt;/artifactId&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  (repositories...)
  </code></pre>
  <p>While I try to run my app I see information in console:</p>
  <blockquote>
  <hr />
  <p>APPLICATION FAILED TO START</p>
  <hr />
  <p>Description:</p>
  <p>Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:</p>
  <p>Property: driverclassname</p>
  <p>Value: org.sqlite.JDBC</p>
  <p>Origin: &quot;driverClassName&quot; from property source &quot;source&quot;</p>
  <p>Reason: Unable to set value for property driver-class-name</p>
  <p>Action:</p>
  <p>Update your application's configuration</p>
  </blockquote>
  <p>First thing what I had checked it's that lib with class org.sqlite.JDBC (sqlite-jdbc-3.21.0.1.jar) is in my uber-jar (I generated it with mvn clean install with skip-tests flag) and it exists (it's packaged in my_app.jar\BOOT-INF\lib). Even when I'm starting my app from commandline I see same error (so it's not sts error).</p>
  <p>Next, I thinked that maybe I have to specify driver class name manually, so i wrote:</p>
  <pre><code>spring.datasource.driver-class-name=org.sqlite.JDBC
  </code></pre>
  <p>And then I see stacktrace:</p>
  <pre><code>org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: org.sqlite.JDBC
  (...)
  </code></pre>
  <p>Next, I tried to add another starter:</p>
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p>... but nothing was changed</p>
  <p>I have no other idea how to deal with this problem. I had googled for configuring spring-boot and sqlite, but I didn't found anything helpful.</p>
  <p>Please help, I'll be very thankfull for any clue :)</p>
  <p>PS: my app was working properly on MySql database</p>
  <p>PS2: I'm using newest version of hibernate and I don't have problem with sql dialect</p>