LoginSignup
0
0

mvnwでJVMオプションを指定する方法

Posted at

以下のようにMAVEN_OPTSを設定することで可能。

$ export MAVEN_OPTS=<JVN Option>
$ ./mvnw clean install

例えば、GCのログを取得したいなら以下のように指定(注:以下のGCログ取得の指定方法はJava9以降)

$ export MAVEN_OPTS="-Xlog:gc*:file=/path/to/your/logfile.log"
$ ./mvnw clean install
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