概要
Mavenによるビルド実行時のjarの保存場所は${user.home}/.m2/settings.xml
ファイルを作成する事で変更することができる。
※デフォルトでは${user.home}/.m2/repository/
配下に保存される。
環境
settings.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 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository>/var/maven</localRepository> </settings>