日々の記録。

プログラミングのメモや感じた事などを記録。

Maven メモ (Run maven)

run mavenから抜粋。

一般的なビルドコマンド.

maven clean install

The vast majority of Maven-built projects can be built with the following command:

ホームディレクトリの場所は?

デフォルトでは、

  • ~/.m2 on Unix/Mac OS X
  • C:\Documents and Settings\username.m2 on Windows

installするとどうなる?

ローカルリポジトリに全モジュールをインストールする。ローカルリポジトリは、ホームディレクトリに作られる。ホームディレクトリには、ダウンロードしたバイナリと、プロジェクトでビルドしたものが蓄積される。

This command tells Maven to build all the modules, and to install it in the local repository. The local repository is created in your home directory (or alternative location that you created it), and is the location that all downloaded binaries and the projects you built are stored.

よくある問題は、「依存関係が解決できない」

大抵は、ビルド時のエラー内容に従って手動インストールすることで解決できる。