0
1

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 3 years have passed since last update.

【Maven】Eclipseでローカルリポジトリの変更方法

Posted at

Mavenのローカルリポジトリ

Mavenでダウンロードした依存ライブラリのjarファイルなどを置く場所。

Windowsの場合は下記の場所がデフォルトになっています。

"C:\Users{ログインユーザー名}.m2\repository"

setting.xml作成

任意の場所にsetting.xml作成を作成します。
内容は以下の通り。

setting.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                          http://maven.apache.org/xsd/settings-1.0.0.xsd">
      <localRepository>ローカルリポジトリのパス</localRepository>
      <interactiveMode/>
      <usePluginRegistry/>
      <offline/>
      <pluginGroups/>
      <servers/>
      <mirrors/>
      <proxies/>
      <profiles/>
      <activeProfiles/>
</settings>

Eclipseの設定

ウィンドウ > 設定 > Maven > ユーザー設定 を開きます。

ローカルリポジトリ.png
ユーザー設定で作成した「setting.xml」を設定します。

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?