title: Way Too Many Maven Dependencies
body: <p>I've been trying to setup the simplest of simple hibernate applications and for reasons beyond my mediocre way of thinking I cannot get it running. Maven is easy enough - adding dependencies to the build path, updating the project, <em>blah blah blah yadda yadda yadda</em></p>
  
  <p>It started off as a single <code>ClassNotFoundException</code> which required a missing dependency. I would import the missing jar and run the app again, only to get <em>another</em> <code>ClassNotFoundException</code>. Next thing I know I HAVE A TON OF JARS AND NO WORKING APPLICATION</p>
  
  <p><img src="https://i.stack.imgur.com/jbVHt.png" alt="enter image description here"></p>
  
  <p>*Directories have been masked to protect the unfortunate</p>
  
  <p>I've used both Maven and Hibernate in my last project in Eclipse Kepler and it was almost <em>too</em> easy, ha! Updating to Luna was a real pain trying to get Maven to run correctly - disabling the Java Compilier Compliance Level just to be able to update the Dynamic Web Module, not to mention manually creating the missing src/main/java and src/test/java folders that are standard with a <code>maven-archetype-webapp</code>, the list goes on. I've spent tooooo much time just to get the thing to not fail.</p>
  
  <p>In my last project all I needed to import was:</p>
  
  <pre><code>&lt;dependency&gt;
     &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
     &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
     &lt;version&gt;3.1.0&lt;/version&gt;
     &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
     &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
     &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
     &lt;version&gt;4.3.6.Final&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
     &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
     &lt;artifactId&gt;hibernate-c3p0&lt;/artifactId&gt;
     &lt;version&gt;4.3.6.Final&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
     &lt;groupId&gt;org.springframework&lt;/groupId&gt;
     &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
     &lt;version&gt;4.1.0.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;org.springframework&lt;/groupId&gt;
    &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
    &lt;version&gt;4.1.0.RELEASE&lt;/version&gt;
    &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;org.springframework&lt;/groupId&gt;
    &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
    &lt;version&gt;4.1.0.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
     &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
     &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
     &lt;version&gt;1.9.13&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>That' was it! I was swimming in Session Factories and Updating database tables like it was my job (it is).</p>
  
  <p>This leads me to believe some core functionality is missing from this new project. Perhaps I've overlooked something in the IDE Upgrade. Could almost guarantee its my Build Path. Please Help!</p>
  
  <p>About my project - I'm using:
  Eclipse Luna (Kepler was 100x easier to setup with Maven)
  Maven Webapp Archetype
  JDK-1.7
  Hibernate Core 4-3.6</p>
  
  <p>My latest Exception was</p>
  
  <pre><code> Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/NamedStoredProcedureQuery
      at org.hibernate.cfg.AnnotationBinder.bindDefaults(AnnotationBinder.java:276)
      at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1402)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1844)
      at com.boa.ecris.test.Main.main(Main.java:22)
  Caused by: java.lang.ClassNotFoundException: javax.persistence.NamedStoredProcedureQuery
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 4 more
  </code></pre>
  
  <p>If this is specific to the javax <code>persistence-api.jar</code>, it's already in there!!!</p>