メモ

確かに、id:dot 氏の指摘どおりオプショナルのプロパティのはずですが、
maven eclipse を実行すると、下記のエラーが出ます。

BUILD FAILED
File...... file:/C:/Documents and Settings/Administrator/.maven/plugins/maven-ec
lipse-plugin-1.6/
Element... j:import
Line...... 59
Column.... 86
file:/C:/Documents and Settings/Administrator/.maven/plugins/maven-eclipse-plugi
n-1.6/plugin-resources/templates/classpath.jelly:45:96:
You must define an attribute called 'path' for this tag.


genapp で template を struts にして、その後 eclipse を実行する場合、
genapp で作成された、projext.xml 中の以下の箇所を


strutstestcase
strutstest
2.1.0

true

以下に書き換える必要がある


strutstestcase
strutstestcase
2.1-1.1-2.3

true


まとめ

  • genapp から Eclipse に読み込ませるまでの手順(struts template編)

1.プロジェクト用ディレクトリの作成
(C:\eclipse-SDK-3.0M8-win32\eclipse\workspace\maven-tester とか)
2.プロジェクト用ディレクトリで、maven genapp を実行する
(Enter a project template to use: [default] -> struts / Please specify an id for your application: [app] -> maven-tester
3.作成された project.xml 中の


strutstestcase
strutstest
2.1.0

true

を以下に書き換え、xdoclet の plugin 指定部分を追加する。


strutstestcase
strutstestcase
2.1-1.1-2.3

true


xdoclet
maven-xdoclet-plugin
1.2
plugin

false

4.maven test を実行して成功することを確認する。(依存関係の問題で2回実行しないとダメな場合があります)ここで、エラーが出る場合はローカルリポジトリー(C:\Documents and Settings\Administrator\.maven など)を削除して、再実行
5.maven eclipse を実行する
6.Eclipse で「インポート > 既存プロジェクトをワークスペースへ」で、プロジェクト用ディレクトリを指定して読み込む

  • 関連外部サイト

○外部プラグイン http://maven-plugins.sourceforge.net/
(http://maven-plugins.sourceforge.net/maven/maven-plugins/plugins/,
http://maven-plugins.sourceforge.net/maven/plugins/)
○外部プラグイン(日本語対応)http://sourceforge.jp/projects/maven-plugins/
(http://maven-plugins.sourceforge.jp/maven/maven/plugins/)
○公開外部リポジトリ http://www.ibiblio.org/maven/
(http://www.ibiblio.org/maven)