Hibernate 5 import cannot be resolved
<p>I'm working on a maven project in eclipse and I got a error for my hibernate imports. Here are my maven xml file and the java file:</p>

<p>pom.xml (some jboss and tomcat dependencies omitted for relevance)</p>



<pre><code>&lt;dependency&gt;
   &lt;groupId&gt;javax.transaction&lt;/groupId&gt;
   &lt;artifactId&gt;jta&lt;/artifactId&gt;
   &lt;version&gt;1.1&lt;/version&gt;
&lt;/dependency&gt;

&lt;!-- Spring and Transactions --&gt;
 &lt;dependency&gt;
    &lt;groupId&gt;org.springframework&lt;/groupId&gt;
    &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
    &lt;version&gt;4.3.2.RELEASE&lt;/version&gt;
&lt;/dependency&gt;

&lt;dependency&gt;
    &lt;groupId&gt;org.springframework&lt;/groupId&gt;
    &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
    &lt;version&gt;4.3.2.RELEASE&lt;/version&gt;
&lt;/dependency&gt;

&lt;dependency&gt;
    &lt;groupId&gt;org.springframework&lt;/groupId&gt;
    &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
    &lt;version&gt;4.3.2.RELEASE&lt;/version&gt;
&lt;/dependency&gt;

&lt;!-- Spring ORM support --&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.springframework&lt;/groupId&gt;
    &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
    &lt;version&gt;4.3.2.RELEASE&lt;/version&gt;
&lt;/dependency&gt;

&lt;!-- Hibernate --&gt;

&lt;dependency&gt;
    &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
    &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
    &lt;version&gt;5.2.2.Final&lt;/version&gt;
&lt;/dependency&gt;

&lt;dependency&gt;
  &lt;groupId&gt;org.hibernate.common&lt;/groupId&gt;
  &lt;artifactId&gt;hibernate-commons-annotations&lt;/artifactId&gt;
  &lt;version&gt;5.0.1.Final&lt;/version&gt;
&lt;/dependency&gt;

&lt;dependency&gt;
  &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;
  &lt;artifactId&gt;hibernate-jpa-2.1-api&lt;/artifactId&gt;
  &lt;version&gt;1.0.0.Final&lt;/version&gt;
&lt;/dependency&gt;

&lt;dependency&gt;
  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
  &lt;artifactId&gt;hibernate-envers&lt;/artifactId&gt;
  &lt;version&gt;5.2.2.Final&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

<p>HibernateConfig.java</p>



<pre><code>package config;

//some imports omitted for relevance 

//these two imports give me "org.springframework.orm cannot be resolved"
import org.springframework.orm.hibernate5.HibernateTransactionManager;
import org.springframework.orm.hibernate5.LocalSessionFactoryBean;


@Configuration
@EnableTransactionManagement
@ComponentScan({ "src.config" })
@PropertySource(value = { "classpath:application.properties" })
public class HibernateConfig {}
</code></pre>