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 web project with Maven

The Java EE web project we created is based on Maven. It includes pom.xml to build, compile, and package the web application. The default project in WildFly 8.1 is a Java EE 7 version. As the Java EE project is a web project, the packaging gets specified as war in pom.xml. The Group Id and Artifact Id attributes that we specified in creating a Java EE web project get configured in pom.xml as well. As we are using MySQL database, we need to add the dependency on the MySQL JDBC driver:

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

The dependency on the Java EE 7 JSF 2.2 API, which is provided by WildFly 8.1, is included in pom.xml by ...

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