title: spring 3.1 with hibernate 4 with spring security 3.1: How do I ensure that I have all the dependencis included and which tags to include?
body: <p>I am using spring mvc application with hibernate 4 and spring security 3.1. I am using maven as a dependency management tool.</p>
  
  <p>How do I ensure that I have all the dependencies included? Is there a website where I can type in these framework names and it will generate the pom for me?</p>
  
  <p>Attempt:</p>
  
  <p>So I found out all the dependencies I need for Spring MVC and Hibernate 4.1. I am pasting it here for others just in case anyone else is looking for a similar thing. I will work on the spring security part now and update this post once I configure it successfully:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;spring.version&gt;3.1.1.RELEASE&lt;/spring.version&gt;
      &lt;hibernate-version&gt;4.1.1.Final&lt;/hibernate-version&gt;
      &lt;mysql-version&gt;5.1.20&lt;/mysql-version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;!-- Spring framework --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&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;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt; &lt;!-- Used for Hibernate4 LocalSessionFactoryBean --&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- AOP dependency --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;cglib&lt;/groupId&gt;
          &lt;artifactId&gt;cglib&lt;/artifactId&gt;
          &lt;version&gt;2.2.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Persistence Management --&gt;
      &lt;dependency&gt; &lt;!-- Apache BasicDataSource --&gt;
          &lt;groupId&gt;commons-dbcp&lt;/groupId&gt;
          &lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt;
          &lt;version&gt;1.2.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt; &lt;!-- MySQL database driver --&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;${mysql-version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt; &lt;!-- Hibernate --&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
          &lt;version&gt;${hibernate-version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
          &lt;version&gt;${hibernate-version}&lt;/version&gt;
          &lt;!-- will come with Hibernate core --&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;3.8.1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>