by ampatspell
in Code
Just deployed latest SNAPSHOT of maven archetypes:
bones-google-quickstart-archetype (Google GWT & AppEngine Web App With Bones and Gaeds)google-quickstart-archetype (Google GWT & AppEngine Web App)They’re finally updated to latest dependencies and even compile and run.
mvn archetype:generate -DarchetypeCatalog=http://www.amateurinmotion.com/repository
To try them out make sure you have Maven 2.2.1 and run:
$ mvn archetype:generate -DarchetypeCatalog=http://www.amateurinmotion.com/repository
...
Choose archetype:
1: http://www.amateurinmotion.com/repository -> google-quickstart-archetype ↩
(Google GWT & AppEngine Web App)
2: http://www.amateurinmotion.com/repository -> bones-google-quickstart-archetype ↩
(Google GWT & AppEngine Web App With Bones and Gaeds)
Choose a number: (1/2): 2
...
Define value for groupId: : com.zeeba
Define value for artifactId: : zeeba
Define value for version: 1.0-SNAPSHOT: :
Define value for package: com.zeeba: :
Confirm properties configuration:
groupId: com.zeeba
artifactId: zeeba
version: 1.0-SNAPSHOT
package: com.zeeba
Y: :
...
$ cd zeeba
$ mvn install # compiles GWT module, packs war ready for AppEngine deployment
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Bones Quickstart ...................................... SUCCESS [1.631s]
[INFO] Quickstart -- Shared .................................. SUCCESS [1.480s]
[INFO] Quickstart -- GWT ..................................... SUCCESS [30.084s]
[INFO] Quickstart -- Server .................................. SUCCESS [2.208s]
[INFO] Quickstart -- War ..................................... SUCCESS [4.255s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40 seconds
...
$ cd zeeba-gwt
$ mvn google:gwt-run # to run GWT in Development Mode
$ cd zeeba-war
$ mvn google:appengine-run # to run AppEngine local server with compiled GWT module
To deploy app to AppEngine, set your login, password in ~/.m2/settings.xml:
<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"> <profiles> <profile> <id>appengine</id> <properties> <appengine-email> ... </appengine-email> <appengine-password> ... </appengine-password> </properties> </profile> </profiles> <activeProfiles> <activeProfile>appengine</activeProfile> </activeProfiles> </settings>
Run:
$ mvn deploy # needs maven distributionManagement/repository or $ mvn install $ cd zeeba-war $ mvn google:appengine-deploy
Info about google-maven-plugin can be found at plugin information site.
Plugin and Bones also can be used with Springframework outside AppEngine environment.