Set java system properties in IntelliJ or Eclipse

前端 未结 3 1251
悲&欢浪女
悲&欢浪女 2021-02-01 14:25

I have a project which runs correctly under the terminal command

mvn package exec:java -Dplatform.dependencies -Dexec.mainClass=Demo

Now, I ne

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-01 14:46

    In IntelliJ it works as follows: Go to configurations -> VM options and add the parameter/value pair:

    -DmyParameter=value
    

    Make sure you add a "D" after the "-"!

提交回复
热议问题