title: Maven Project after deploy won't establish a connection to the Database file
body: <p>It works well when I start it from the IDE (as a Java Application), but when I deploy it (maven native command) and start it via .exe file, it's not able to find even the directory.</p>
  
  <p><strong>The problem solves if I write 'jdbc:sqlite:SeeYourUse.db', but I thought I'm supposed to keep all of my resources under 'src/main/resources'.</strong></p>
  
  <p>By the way, all the images load properly.</p>
  
  <p>Can somebody explain where could the problem hide?</p>
  
  <p>Here is a part of my project's POM. Basically, it contains a dependency to SQLite (that is downloaded and works properly) and JavaFX plugin (that works properly as well)</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;com.zenjava&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;8.2.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;mainClass&gt;com.SeeYourUse.Main&lt;/mainClass&gt;
              &lt;/configuration&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.twdata.maven&lt;/groupId&gt;
                      &lt;artifactId&gt;mojo-executor&lt;/artifactId&gt;
                      &lt;version&gt;2.1.0&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;mainClass&gt;com.SeeYourUse.Main&lt;/mainClass&gt;
                      &lt;/manifest&gt;
                  &lt;/archive&gt;
                  &lt;descriptorRefs&gt;
                      &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
                  &lt;/descriptorRefs&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  
  
  &lt;/build&gt;
  
  &lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.xerial&lt;/groupId&gt;
          &lt;artifactId&gt;sqlite-jdbc&lt;/artifactId&gt;
          &lt;version&gt;3.7.2&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  
  
  &lt;url&gt;https://github.com/CrazzyBeer/SeeYourUse&lt;/url&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here is the method that connects to the Database.</p>
  
  <pre><code>private void connect() {
  
          try {
  
              Class.forName("org.sqlite.JDBC");
              c = DriverManager.getConnection("jdbc:sqlite:src/main/resources/DB/SeeYourUse.db");
  
  
          } catch (Exception e) {
              //System.err.println("Couldn't connect to the DB");
              e.printStackTrace();
          } 
  
          // System.out.println("DB Opened successfully");
      }
  </code></pre>
  
  <p>Here is the error stack trace I get</p>
  
  <pre><code>java.sql.SQLException: path to 'src/main/resources/DB/SeeYourUse.db': 'E:\Programming\Java\Work\SeeYourUse\target\jfx\native\SeeYourUse-0.0.1-SNAPSHOT\app\src' does not exist
      at org.sqlite.Conn.open(Conn.java:103)
      at org.sqlite.Conn.&lt;init&gt;(Conn.java:57)
      at org.sqlite.JDBC.createConnection(JDBC.java:77)
      at org.sqlite.JDBC.connect(JDBC.java:64)
      at java.sql.DriverManager.getConnection(DriverManager.java:664)
      at java.sql.DriverManager.getConnection(DriverManager.java:270)
      at com.SeeYourUse.SQLiteDB.connect(SQLiteDB.java:30)
      at com.SeeYourUse.SQLiteDB.createMessages(SQLiteDB.java:111)
      at com.SeeYourUse.SQLiteDB.init(SQLiteDB.java:96)
      at com.SeeYourUse.Main.start(Main.java:21)
      at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
      at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
      at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
      at java.lang.Thread.run(Thread.java:745)
  </code></pre>