title: Hibernate throws java.lang.NoClassDefFoundError: org/hibernate/internal/CoreMessageLogger
body: <p>I got this error running mvn tomcat7:run from this pom.xml When deploying an application in tomcat 7. Here my dependencies, I guess that the problem comes due to mixing versions of dependent packages.</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
     &lt;parent&gt;
        &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
        &lt;artifactId&gt;dandelion-samples-parent&lt;/artifactId&gt;
        &lt;version&gt;0.10.0&lt;/version&gt;
        &lt;relativePath&gt;../../pom.xml&lt;/relativePath&gt;
     &lt;/parent&gt;
  
     &lt;artifactId&gt;datatables-jsp-ajax&lt;/artifactId&gt;
     &lt;packaging&gt;war&lt;/packaging&gt;
  
     &lt;name&gt;Dandelion :: Samples :: Datatables :: datatables-jsp-ajax&lt;/name&gt;
  
     &lt;properties&gt;
        &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
     &lt;/properties&gt;
  
     &lt;dependencies&gt;
        &lt;!-- Dandelion-Datatables --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
           &lt;artifactId&gt;datatables-jsp&lt;/artifactId&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
           &lt;artifactId&gt;datatables-spring3&lt;/artifactId&gt;
        &lt;/dependency&gt;
  
        &lt;!-- Spring + Jackson --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework&lt;/groupId&gt;
           &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework&lt;/groupId&gt;
           &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework&lt;/groupId&gt;
           &lt;artifactId&gt;spring-orm&lt;/artifactId&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;/dependency&gt;
  
        &lt;!-- JSTL --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;jstl&lt;/groupId&gt;
           &lt;artifactId&gt;jstl&lt;/artifactId&gt;
        &lt;/dependency&gt;
  
        &lt;!-- Servlet --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
           &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
           &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;
  
        &lt;!-- Tiles --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
           &lt;artifactId&gt;tiles-jsp&lt;/artifactId&gt;
        &lt;/dependency&gt;
  
        &lt;!-- Hibernate as JPA implementation --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
           &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
        &lt;/dependency&gt;
  
        &lt;!-- Database drivers --&gt;
        &lt;!-- H2 (local) --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;com.h2database&lt;/groupId&gt;
           &lt;artifactId&gt;h2&lt;/artifactId&gt;
        &lt;/dependency&gt;
  
        &lt;!-- Logging --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
           &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;
        &lt;/dependency&gt;
     &lt;/dependencies&gt;
  
     &lt;build&gt;
        &lt;plugins&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
           &lt;/plugin&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
              &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
           &lt;/plugin&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
              &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
           &lt;/plugin&gt;
        &lt;/plugins&gt;
     &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Here the ../../pom.xml:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
     &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
     &lt;artifactId&gt;dandelion-samples-parent&lt;/artifactId&gt;
     &lt;version&gt;0.10.0&lt;/version&gt;
     &lt;packaging&gt;pom&lt;/packaging&gt;
  
     &lt;name&gt;Dandelion :: Samples :: Parent&lt;/name&gt;
     &lt;description&gt;Parent of all Dandelion samples&lt;/description&gt;
  
     &lt;modules&gt;
        &lt;module&gt;dandelion/dandelion-jsp-starter&lt;/module&gt;
        &lt;module&gt;dandelion/dandelion-thymeleaf-starter&lt;/module&gt;
        &lt;module&gt;datatables/datatables-jsp-starter&lt;/module&gt;
        &lt;module&gt;datatables/datatables-jsp-themes&lt;/module&gt;
        &lt;module&gt;datatables/datatables-jsp-plugins&lt;/module&gt;
        &lt;module&gt;datatables/datatables-jsp-configuration-groups&lt;/module&gt;
        &lt;module&gt;datatables/datatables-jsp-extension&lt;/module&gt;
        &lt;module&gt;datatables/datatables-jsp-ajax&lt;/module&gt;
        &lt;module&gt;datatables/datatables-jsp-i18n-struts1&lt;/module&gt;
        &lt;module&gt;datatables/datatables-jsp-i18n-struts2&lt;/module&gt;
        &lt;module&gt;datatables/datatables-jsp-export&lt;/module&gt;
        &lt;module&gt;datatables/datatables-thymeleaf-starter&lt;/module&gt;
        &lt;module&gt;datatables/datatables-thymeleaf-themes&lt;/module&gt;
        &lt;module&gt;datatables/datatables-thymeleaf-plugins&lt;/module&gt;
        &lt;module&gt;datatables/datatables-thymeleaf-configuration-groups&lt;/module&gt;
        &lt;module&gt;datatables/datatables-thymeleaf-ajax&lt;/module&gt;
        &lt;module&gt;datatables/datatables-thymeleaf-export&lt;/module&gt;
        &lt;module&gt;datatables/datatables-thymeleaf-extension&lt;/module&gt;
     &lt;/modules&gt;
  
     &lt;properties&gt;
        &lt;!-- Configuration --&gt;
        &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  
        &lt;!-- Dependencies --&gt;
        &lt;dandelion.version&gt;0.10.0&lt;/dandelion.version&gt;
        &lt;dandelion.datatables.version&gt;0.10.0&lt;/dandelion.datatables.version&gt;
        &lt;jstl.version&gt;1.2&lt;/jstl.version&gt;
        &lt;tiles.version&gt;2.2.2&lt;/tiles.version&gt;
        &lt;servlet-api.version&gt;3.0.1&lt;/servlet-api.version&gt;
        &lt;thymeleaf.version&gt;2.1.3.RELEASE&lt;/thymeleaf.version&gt;
        &lt;thymeleaf.layout.version&gt;1.2.4&lt;/thymeleaf.layout.version&gt;
        &lt;thymeleaf.tiles2.version&gt;2.1.1.RELEASE&lt;/thymeleaf.tiles2.version&gt;
        &lt;spring.version&gt;3.2.8.RELEASE&lt;/spring.version&gt;
        &lt;jackson.version&gt;1.9.13&lt;/jackson.version&gt;
        &lt;struts1.version&gt;1.3.10&lt;/struts1.version&gt;
        &lt;struts2.version&gt;2.1.8&lt;/struts2.version&gt;
        &lt;hibernate.version&gt;4.3.5.Final&lt;/hibernate.version&gt;
        &lt;slf4j-api.version&gt;1.7.5&lt;/slf4j-api.version&gt;
        &lt;logback.version&gt;1.1.2&lt;/logback.version&gt;
        &lt;h2.version&gt;1.3.175&lt;/h2.version&gt;
  
        &lt;!-- Maven plugins --&gt;
        &lt;maven-compiler-plugin.version&gt;3.0&lt;/maven-compiler-plugin.version&gt;
        &lt;tomcat7-maven-plugin.version&gt;2.0&lt;/tomcat7-maven-plugin.version&gt;
        &lt;jetty-maven-plugin.version&gt;8.1.8.v20121106&lt;/jetty-maven-plugin.version&gt;
        &lt;spring-boot-maven-plugin.version&gt;1.0.2.RELEASE&lt;/spring-boot-maven-plugin.version&gt;
     &lt;/properties&gt;
  
     &lt;dependencyManagement&gt;
        &lt;dependencies&gt;
           &lt;!-- Dandelion --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;dandelion-jsp&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;dandelion-thymeleaf&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;dandelion-spring3&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;dandelion-ehcache&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;dandelion-webjars&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;dandelion-yuicompressor&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;!-- Dandelion-Datatables --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;datatables-jsp&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.datatables.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;datatables-thymeleaf&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.datatables.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;datatables-spring3&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.datatables.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;datatables-compression-yui&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.datatables.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;datatables-export-poi&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.datatables.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;datatables-export-poi-ooxml&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.datatables.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;datatables-export-itext&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.datatables.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;datatables-struts1&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.datatables.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.github.dandelion&lt;/groupId&gt;
              &lt;artifactId&gt;datatables-struts2&lt;/artifactId&gt;
              &lt;version&gt;${dandelion.datatables.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;!-- Spring --&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;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;!-- Struts 1 --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts-core&lt;/artifactId&gt;
              &lt;version&gt;${struts1.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts-taglib&lt;/artifactId&gt;
              &lt;version&gt;${struts1.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts-extras&lt;/artifactId&gt;
              &lt;version&gt;${struts1.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;!-- Struts 2 --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-core&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;!-- JSTL --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;jstl&lt;/groupId&gt;
              &lt;artifactId&gt;jstl&lt;/artifactId&gt;
              &lt;version&gt;${jstl.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;!-- Servlet --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
              &lt;version&gt;${servlet-api.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
           &lt;/dependency&gt;
  
           &lt;!-- Jackson --&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;${jackson.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;!-- Thymeleaf --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.thymeleaf&lt;/groupId&gt;
              &lt;artifactId&gt;thymeleaf&lt;/artifactId&gt;
              &lt;version&gt;${thymeleaf.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.thymeleaf&lt;/groupId&gt;
              &lt;artifactId&gt;thymeleaf-spring3&lt;/artifactId&gt;
              &lt;version&gt;${thymeleaf.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.thymeleaf.extras&lt;/groupId&gt;
              &lt;artifactId&gt;thymeleaf-extras-tiles2&lt;/artifactId&gt;
              &lt;version&gt;${thymeleaf.tiles2.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;nz.net.ultraq.thymeleaf&lt;/groupId&gt;
              &lt;artifactId&gt;thymeleaf-layout-dialect&lt;/artifactId&gt;
              &lt;version&gt;${thymeleaf.layout.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;!-- Tiles --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
              &lt;artifactId&gt;tiles-core&lt;/artifactId&gt;
              &lt;version&gt;${tiles.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
              &lt;artifactId&gt;tiles-api&lt;/artifactId&gt;
              &lt;version&gt;${tiles.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
              &lt;artifactId&gt;tiles-jsp&lt;/artifactId&gt;
              &lt;version&gt;${tiles.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
              &lt;artifactId&gt;tiles-servlet&lt;/artifactId&gt;
              &lt;version&gt;${tiles.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;!-- Sitemesh --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.sitemesh&lt;/groupId&gt;
              &lt;artifactId&gt;sitemesh&lt;/artifactId&gt;
              &lt;version&gt;${sitemesh3.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;!-- Hibernate as JPA implementation --&gt;
           &lt;dependency&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;/dependency&gt;
  
           &lt;!-- Database drivers --&gt;
           &lt;!-- H2 (local) --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;com.h2database&lt;/groupId&gt;
              &lt;artifactId&gt;h2&lt;/artifactId&gt;
              &lt;version&gt;${h2.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;!-- Logging --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;${slf4j-api.version}&lt;/version&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
              &lt;version&gt;${slf4j-api.version}&lt;/version&gt;
           &lt;/dependency&gt;
  
           &lt;dependency&gt;
              &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
              &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;
              &lt;version&gt;${logback.version}&lt;/version&gt;
           &lt;/dependency&gt;
        &lt;/dependencies&gt;
     &lt;/dependencyManagement&gt;
  
     &lt;build&gt;
        &lt;pluginManagement&gt;
           &lt;plugins&gt;
              &lt;plugin&gt;
                 &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                 &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                 &lt;version&gt;${maven-compiler-plugin.version}&lt;/version&gt;
                 &lt;configuration&gt;
                    &lt;source&gt;1.6&lt;/source&gt;
                    &lt;target&gt;1.6&lt;/target&gt;
                 &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;!-- Jetty 8 --&gt;
              &lt;plugin&gt;
                 &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
                 &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
                 &lt;version&gt;${jetty-maven-plugin.version}&lt;/version&gt;
                 &lt;configuration&gt;
                    &lt;connectors&gt;
                       &lt;connector
                          implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"&gt;
                          &lt;port&gt;9090&lt;/port&gt;
                          &lt;maxIdleTime&gt;60000&lt;/maxIdleTime&gt;
                       &lt;/connector&gt;
                    &lt;/connectors&gt;
                    &lt;webAppConfig&gt;
                       &lt;contextPath&gt;/${project.artifactId}&lt;/contextPath&gt;
                    &lt;/webAppConfig&gt;
                 &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;!-- Tomcat 7 --&gt;
              &lt;plugin&gt;
                 &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
                 &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
                 &lt;version&gt;${tomcat7-maven-plugin.version}&lt;/version&gt;
                 &lt;configuration&gt;
                    &lt;server&gt;tomcat-development-server&lt;/server&gt;
                    &lt;port&gt;9090&lt;/port&gt;
                    &lt;path&gt;/${project.artifactId}&lt;/path&gt;
                 &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;!-- Spring Boot --&gt;
              &lt;plugin&gt;
                 &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                 &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                 &lt;version&gt;${spring-boot-maven-plugin.version}&lt;/version&gt;
              &lt;/plugin&gt;
           &lt;/plugins&gt;
        &lt;/pluginManagement&gt;
     &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>