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

In this section, we will compile, package, and deploy the GWT web project to WildFly 8.1 with the Maven build tool. The pom.xml file is similar to the one used for the project generated on the command line and imported into Eclipse. The Errai (a GWT-based framework) dependencies are also included. The packaging for gwt-jboss-ajax artifactId is war. The GWT version should be 2.6.0. Refer to the following code to accomplish this:

<properties>
  <version.com.google.gwt>2.6.0</version.com.google.gwt>
</properties>

Specify the output directory for the Maven WAR plugin configuration as the WildFly 8.1 deployments directory, as follows:

<outputDirectory>C:\wildfly-8.1.0.Final\standalone\deployments</outputDirectory>

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