HowTo 〜 プロジェクトの作成
コマンドラインから以下を実行します。
#1行で記述
(mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app )
実行が終わると my-app というフォルダができていて、その中に pom.xml があります。
また src\main\java にアプリケーションコードが、src\test\java にテストコードができています。
# SAStrutsとかも、同じような構成でしたっけね。
次はコンパイルです。
C:. | pom.xml | \---src +---main | \---java | \---com | \---mycompany | \---app | App.java | \---test \---java \---com \---mycompany \---app AppTest.java
参照URL
Introduction to the POM
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
Introduction to the Standard Directory Layout
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html