Import the Dependencies

In order to use GWTP, you need to import the source code. This can either be done with a dependency management tool (Maven, Gradle, etc.) or manually. We highly recommend using tool as it makes managing transitive dependencies a lot easier.

Import the Dependencies with Maven

For more information on Maven, go to the official project page.

  • First, you need a pom file so create /pom.xml at the root of your project.
  • Next, paste the following code in your file:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="" xmlns:xsi=""



        <!-- client -->

        <!-- plugins -->





            <!-- GWT -->




        <!-- GWTP -->
  • Finally, update the content of the groupId, artifactId and module tags to your project's values.

That's it. Maven will transitively resolve the sub-dependencies for you.


To use the latest snapshot (1.6-SNAPSHOT), you need to add the following repository in your pom.xml:

        <name>Sonatype snapshot repository</name>

Import the Dependencies with the JARs

Using GWTP without a dependency management tool is a bit more trouble.

Note: A jar containing all GWTP code exists, however is is unlikely that you need everything from GWTP at this point. Also, at this time, that JAR does not include transitive dependencies, so you would still have to download them manually.

Create Files

Once you are done, it is time to create the files.