Add info on how to update GWT web site

Change-Id: I33cb31175229b71db655431bea81e60d9b0d53da
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..8706fe1
--- /dev/null
+++ b/README.md
@@ -0,0 +1,42 @@
+# GWT Site Uploader
+
+This project is used to update the gwtproject.org site that is hosted in GAE infrastructure
+
+## Requirements
+
+- You need a valid account in the gwtproject.org domain, with the appropriate permissions to access
+the gwt-site GAE project.
+
+- Make sure that you have google-cloud-sdk installed and `gcloud` is in your `PATH`
+
+
+## Updating the gwtproject.org site
+
+1. Checkout the project `gwt-site` from github, and run the following command so as the
+documentation is copied to your local maven repository.
+
+```
+ cd your_folder_path/gwt-site
+ mvn clean install -Pgrunt
+```
+
+2. Authenticate in the GAE infrastructure by running
+
+```
+ gcloud auth login
+```
+   when the browser ask for authentication, select your `@gwtproject.org` account
+
+3. Compile the project so as resources are updated with latest doc, uploader is compiled,
+and tests run.
+
+```
+ mvn -q clean package
+```
+
+4. Upload the documentation to the web server in GAE
+
+```
+ mvn -q exec:java
+```
+
diff --git a/pom.xml b/pom.xml
index 98f2a59..5d6d9c8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,6 +8,8 @@
 
   <properties>
     <appengine.target.version>1.9.42</appengine.target.version>
+    <appengine.instance>gwtproject-demo</appengine.instance>
+    <website.folder>gwt-site-unpack</website.folder>
   </properties>
 
   <dependencies>
@@ -88,7 +90,7 @@
             <configuration>
               <includeGroupIds>com.google.gwt.site</includeGroupIds>
               <includeArtifactIds>gwt-site</includeArtifactIds>
-              <outputDirectory>${project.build.directory}/gwt-site-unpack</outputDirectory>
+              <outputDirectory>${project.build.directory}/${website.folder}</outputDirectory>
             </configuration>
           </execution>
         </executions>
@@ -97,8 +99,23 @@
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>exec-maven-plugin</artifactId>
-        <version>1.1.1</version>
+        <version>1.6.0</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>java</goal>
+            </goals>
+          </execution>
+          <configuration>
+            <mainClass>com.google.gwt.site.uploader.Uploader</mainClass>
+            <arguments>
+              <argument>${project.build.directory}/${website.folder}</argument>
+              <argument>${appengine.instance}</argument>
+            </arguments>
+          </configuration>
+        </executions>
       </plugin>
+
     </plugins>
   </build>
 </project>
diff --git a/save_credentials.sh b/save_credentials.sh
deleted file mode 100755
index 278851c..0000000
--- a/save_credentials.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash -e
-#
-# Run this command to save your account's cookie to 'credentials'
-
-mvn -q compile
-mvn -q exec:java -Dexec.mainClass=com.google.gwt.site.uploader.SaveCredentials
diff --git a/upload.sh b/upload.sh
deleted file mode 100755
index 74015d8..0000000
--- a/upload.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash -e
-#
-# Run with 'localhost' to deploy locally.
-# Run with 'credentials' (after running save_credentials.sh) to deploy to prod.
-
-mvn -q compile generate-resources
-mvn -q exec:java -Dexec.mainClass=com.google.gwt.site.uploader.Uploader -Dexec.args="target/gwt-site-unpack $1"