Google App Engine for Java
開発環境をサクッと構築!Googleが提供しているAppEngineというプラット
フォーム向けのアプリケーション開発環境を、mavenを使って作れるように、仕組みを揃えてみました!
自己紹介shin1ogawa です。
JiemamyJava-jaWicket-jasourceforge.jpgae-java-samplesasclipse
Google, Java, Eclipse, Maven, Hudson…が大好きなJava屋です。
これの話!
mavenとeclipseでGAE
eclipse上でtestを起動できる mavenからもtestできるdatastoreを使ったunit testseleniumを使ったintegration test
簡単にCI(Hudson+maven)できる環境を構築する!
archetype plug-in
gae-jdo-simaple-quickstart
gae-wicket-quickstartgae-t2-guice-quickstart
mavenのコマンド一発でeclipseでもmavenでも使用できるprojectの雛形を作成する!
gae-maven-plugindevappserverを起動する公式のsdkをダウンロード・インストールする事も可能devappserverを終了する起動時にdeployする…機能も実装したいなぁ
mavenからアプリケーションを起動する!
デモgae-wicket-quickstartprojectを作成eclipseに取り込むeclipseでアプリケーションを起動mavenでintegration-testeclipseでunit testmavenでunit test
projetの作成
$ mvn archetype:generate -DarchetypeGroupId=com.shin1ogawa -DarchetypeArtifactId=gae-wicket-quickstart -DarchetypeVersion=1.0-SNAPSHOT -DarchetypeRepository=http://gae-j-samples.sourceforge.jp/maven/repository -DgroupId=demo197X -DartifactId=demo -DinteractiveMode=false
eclipseへの取り込み
$ mvn eclipse:eclipse dependency:copy-dependencieseclipseでimportして、cleandatastoreのテストが動作するGoogle Pluginでアプリケーションが動作する
mavenでの実行
SDKをダウンロード、解凍し、その環境で起動するダウンロード済みの場合はそれを使用するローカルのSDKのzipを使用する事もできる解凍済みのSDKを使用する事も出来るデフォルトではWebDriverにより、firefoxを使ったエミュレートが行われる
$ mvn -P integration-test install
ご清聴ありがとうございました。
http://gae-j-samples.sourceforge.jp/http://friendfeed.com/shin1ogawa http://shin1o.blogspot.com/http://twitter.com/shin1ogawa
Top Related