Set java system properties in IntelliJ or Eclipse

前端 未结 3 1223
悲&欢浪女
悲&欢浪女 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
    2021-02-01 14:42

    In InteliJ goto "Run"->"Edit Configurations" In the new window, right panel, open the Junit and click on your test. Now, in the middle click on the "Configuration" tab and update the "VM options"

    Note that you will need to do this for every test class, but you can remove all the test from the junit in the right panel and update it in the "Defaults"

提交回复
热议问题