O'Reilly logo

Advanced Java® EE Development with WildFly® by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying the Spring project with Maven

Next, compile, package, and deploy the Spring MVC application using the Maven build tool. The Hibernate JPA API, the Hibernate Validator API, and the Hibernate Entity manager API are provided by WildFly 8.1. Add a dependency on the MySQL JDBC connector, as follows:

<dependency>
  <groupId>mysql</groupId>
  <artifactId>mysql-connector-java</artifactId>
  <version>5.1.22</version>
</dependency>

The Spring dependencies are available in the org.springframework group ID. The Spring version is configured as Spring 4.1.2 by default in pom.xml, as follows:

<version.spring>4.1.2.RELEASE</version.spring>

The Spring Web MVC dependency is also configured as version 4.1.2. All the required Spring framework dependencies—Spring ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required