図2●POMファイルの例
<?xml version="1.0" encoding="Shift_JIS"?>
<project>

 <!-- POMのバージョン.現在はVer3 -->
 <pomVersion>3</pomVersion>
 
 <!-- プロジェクトのID.jarファイル名などに使われる識別名 -->
 <id>testapp</id>
 
 <!-- プロジェクトの正式な名称を指定 -->
 <name>TestApplication</name>
 
 <!-- プロジェクトのバージョン -->
 <currentVersion>1.0</currentVersion>

 <!-- ============================================================
 生成するウェブサイトに関する情報指定
 ============================================================= -->
 
 <!-- プロジェクトの開発元に関する情報 -->
 <organization>
  <name>Apache Software Foundation</name>
  <url>http://www.apache.org/</url>
  <logo>http://maven.apache.org/images/jakarta-logo-blue.gif</logo>
 </organization>
 
 <!-- プロジェクトの開始年 -->
 <inceptionYear>2002</inceptionYear>
 <!-- プロジェクトのパッケージ名 -->
 <package>sample.testapp</package>
 <!-- プロジェクトのロゴ画像 -->
 <logo>http://maven.apache.org/images/maven.jpg</logo>
 <!-- フロントページに表示される詳細な説明文 -->
 <description>
  A collection of example projects showing how to use maven in different
  situations 
 </description>
 <!-- プロジェクトの簡単な説明文 -->
 <shortDescription>
  How to use maven in different situations
 </shortDescription>

 <!-- プロジェクトのホームページ -->
 <url>http://maven.apache.org/reference/plugins/examples/</url>
 <!-- BTSのURL -->
 <issueTrackingUrl>http://nagoya.apache.org/scarab/servlet/scarab/</issueTrackingUrl>

 <!-- リソースのリポジトリ -->
 <repository>
  <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/examples</connection>
  <url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/examples/</url>
 </repository>

 <!-- プロジェクト情報のメーリングリスト -->
 <mailingLists>

  <mailingList>
   <name>StrutsUser ML in Japan</name>
   <subscribe>http://www.freeml.com/ctrl/html/MLInfoForm/struts-user@freeml.com</subscribe>
   <unsubscribe>http://www.freeml.com/ctrl/html/MLInfoForm/struts-user@freeml.com</unsubscribe>
   <archive>http://www.freeml.com/ctrl/html/MLInfoForm/struts-user@freeml.com</archive>
  </mailingList>

 </mailingLists>
 
 <!-- 開発メンバ -->
 <developers>
  <developer>
   <name>Yukimitsu Kurozumi</name>
   <id>yukimi</id>
   <email>yukimi@arksystems.co.jp</email>
   <organization>Arksystems</organization>
   <roles>
    <role>Java Developer</role>
   </roles>
  </developer>
 </developers>

 <!-- ============================================================
 利用するライブラリの情報
 ============================================================= -->
 <dependencies>
  <dependency>
   <id>servletapi</id>
   <version>2.3</version>
  </dependency>
 </dependencies>
 
 <!-- ============================================================
 ビルドに関する設定
 ============================================================= -->
 <build>
  <nagEmailAddress>turbine-maven-dev@jakarta.apache.org</nagEmailAddress>
  <sourceDirectory>src/java</sourceDirectory>
  <unitTestSourceDirectory>src/test</unitTestSourceDirectory>

  <unitTest>
   <includes>
    <include>**/*Test.java</include>
   </includes>
   <excludes>
    <exclude>**/NaughtyTest.java</exclude>
   </excludes>
  </unitTest>

  <resources>
   <resource>
    <directory>src/conf</directory>
    <includes>
     <include>*.properties</include>
    </includes>
   </resource>
  </resources>
 </build>

</project>

Copyright (C) 2000-2003 Nikkei Business Publications, Inc. All rights reserved.