My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members

Maven2を使ってSlim3 + Scenic3 + PirkaでGAE/J開発を始める人向けのArchetypeです。

このArchetypeを用いることで、面倒な環境構築なしに、すぐに開発を開始できます。

前提条件

  • EclipseでGoogle Plugin for Eclipseを用いて開発している人
  • Maven2 or 3でプロジェクト管理をしている人

使い方

コマンドプロンプトを開き、

> mvn archetype:generate -DarchetypeCatalog=http://slim3-scenic3-pirka-archetype.googlecode.com/hg/repository/

を実行します。

どのArchetypeを選ぶか聞かれますが、現状1つのArchetypeしか存在しないので1を入力します。

Choose archetype:
1: http://slim3-scenic3-pirka-archetype.googlecode.com/hg/repository/ -> slim3-scenic3-pirka-archetype (Slim3-Scenic3-Pirka Quickstart Archetype with ktrwjr)
Choose a number: : 1

続いてgroupId, artifactId, version, packageを聞かれるので適宜入力し、最後の確認の問い合わせでEnterを押します。

Define value for property 'groupId': : com.example
Define value for property 'artifactId': : foobar
Define value for property 'version':  1.0-SNAPSHOT: :
Define value for property 'package':  com.example: :
Confirm properties configuration:
groupId: com.example
artifactId: foobar
version: 1.0-SNAPSHOT
package: com.example
 Y: :

特に問題がなければ、Artifactの作成が成功します。

続いて、生成したMaven2のArtifactからEclipseのプロジェクトを生成します。

生成したArtifactのディレクトリに移動し、

> mvn eclipse:eclipse -DdownloadSources -DdownloadJavadocs

を実行します。

ここまで終了したら、Eclipseから「File」-「Import...」-「Existing Projects into Workspace」を実行し、生成したプロジェクトをインポートします。

後は、以下の2つの項目を確認すれば開発の準備は完了です。

  • AllTests.javaを右クリックして「Run As」-「JUnit Test」からユニットテストが全てパスすることを確認
  • プロジェクトを右クリックして「Run As」-「Web Application」を選択し、ブラウザで正しくページが表示されることを確認

では、開発を楽しみましょう!

更新履歴

  • 2.0.1 (2011/07/05)
    • App Engine SDK 1.5.1とSlim3 1.0.12に対応しました。
  • 2.0.0 (2011/06/30)
Powered by Google Project Hosting