title: Is it possible to run Spring without an application server?
body: <p>I have an application which should run only on standard JVM - no application servers like JBoss or Tomcat. Is it possible to run it with Spring (I need <code>spring-jdbc</code>) configured normally through <code>applicationContext.xml</code>? I havent't found any tutorial.</p>
  
  <p><code>SOLUTION</code></p>
  
  <p>First part is from the answers below and the second part is (in my case) adding this into <code>pom.xml</code>. </p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&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;package.MainClass&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;
  </code></pre>