IntelliJ can't find classpath test resource

后端 未结 7 889
你的背包
你的背包 2020-12-02 14:18

I\'m having a problem where IntelliJ 13.1.4, when running a unit test, can\'t find a ServiceLoader file in the src/test/resources directory of my m

7条回答
  •  孤城傲影
    2020-12-02 14:38

    If your project is multi maven and other answers did not work, try this one.

    Change the working directory in intellij. Right Click, go to edit configuration, select the required maven project directory you want to run.

    enter image description here

提交回复
热议问题