0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MavenをWindowsにインストールする

0
Last updated at Posted at 2019-12-13

手順

  1. 公式ページ から、最新版のBinary zip archiveをダウンロードして、任意の場所に解凍する
  2. 必要に応じて、環境変数を編集
  3. "mvn --version"でバージョン確認
  4. 必要な場合は"conf\settings.xml"にプロキシ情報を設定

環境変数

環境変数名 説明
JAVA_HOME JDKのインストールディレクトリ
PATH Mavenのbinフォルダへのパスを追加
例:set PATH="c:\program files\apache-maven-3.6.3\bin";%PATH%

"mvn --version"の実行例

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: D:\Users\xxxxxxxx...
Java version: 11.0.3, vendor: Amazon.com Inc., runtime: C:\Program Files\Java\jdk11.0.3_7
Default locale: ja_JP, platform encoding: MS932
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"

プロキシ設定

conf\settings.xml
<proxy>
  <id>optional</id>
  <active>true</active>
  <protocol>http</protocol>
  <username>ユーザー名</username>
  <password>パスワード</password>
  <host>ホスト名</host>
  <port>ポート番号</port>
  <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?