How to Create your First Java EE Application for GAE

1) Create the application in the console.

2) Add your account to the Maven settings:

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
    <server>
      <id>appengine.google.com</id>
      <username><!-- Username --></username>
      <password><!-- Password --></password> <!-- Optional -->
    </server>
  </servers>
  <profiles>
    <profile>
      <id>appengine</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <gae.version>1.7.2</gae.version>
      </properties>
    </profile>
  </profiles>
</settings>

3) Add the Maven GAE Plugin to your project:

<plugin>
  <groupId>net.kindleit</groupId>
  <artifactId>maven-gae-plugin</artifactId>
  <version>0.9.4</version>
  <configuration>
    <serverId>appengine.google.com</serverId>
  </configuration>
  <dependencies>
    <dependency>
      <groupId>net.kindleit</groupId>
      <artifactId>gae-runtime</artifactId>
      <version>1.7.2</version>
      <type>pom</type>
    </dependency>
  </dependencies>
</plugin>

4) Execute the gae:deploy goal to deploy.

A sample is available here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s