Installing Maven
Mavenのインストール

You must first download Maven (please refer to the documentation). This document will describe how to install Maven using one of two flavours of install archives.

まず最初にMavenをダウンロードする必要があります (リンク文書を参照して下さい)。 この文書では2種類のインストールアーカイブの片方を使ってMavenをインストールする方法を説明します。

The downloaded install archive contains everything required to run Maven on your system. The install archive has a single top-level directory named maven-1.0-beta-5 with all the Maven related files beneath that. You can now unpack the install archive.

ダウンロードしたインストールアーカイブにMavenの実行に必要なファイルがすべて含まれています。 インストールアーカイブはmaven-1.0-beta-5 (訳者注:最新はmaven-1.0-beta-7) という名前のディレクトリを最上位として、その下に関連するファイルが置かれます。 このインストールアーカイブを解凍して下さい。

Before you begin using Maven you will need to define the $MAVEN_HOME envar which is the directory where you just unpacked the Maven install archive. You will also need to add $MAVEN_HOME/bin to your path so that you can run the scripts provided with Maven. This works in exactly the same way that Ant works.

Mavenを実行する前に環境変数$MAVEN_HOME にインストールアーカイブを解凍したディレクトリを設定する必要があります。 またMavenのスクリプトを実行できるように、$MAVEN_HOME/bin をパスに追加しなければなりません。 これらはAntと全く同じように動作します。

NOTE: for those using Maven Beta 4 you must remove the definitions of ${maven.home} and ${maven.repo.local} in your ~/build.properties file. Maven now only requires that you set the $MAVEN_HOME envar.

注意: Maven ベータ4を使用されていた方は、~/build.propertiesファイル中の ${maven.home}、${maven.repo.local}の定義を削除する必要があります。 今は$MAVEN_HOME環境変数を設定するだけで動作します。

Verify that your $MAVEN_HOME envar points to the correct location. In the top-level directory of $MAVEN_HOME , you should see several the following structure:

$MAVEN_HOME環境変数が正しいことを確認して下さい。 最上位の$MAVEN_HOMEディレクトリでは、 次のようなディレクトリ構造が見えるはずです:

      .
      |-- bin
      |-- lib
      |-- plugins
      `-- repository

      

If the above directory structure is present you have everything you need build projects with Maven.

上記ディレクトリ構造が存在すれば、Mavenでプロジェクトをビルドするための準備が整ったことになります。