Maven - Add directory to classpath while executing tests

后端 未结 6 1153
北海茫月
北海茫月 2020-12-02 15:29

The Junits I have in my project need to load property files from the classpath. How can I specify the directory of those property files so that Maven will set that in the cl

6条回答
  •  既然无缘
    2020-12-02 16:21

    Why not just use test/resources and place your properties in the classpath from that point. They'll only be there for the test phase.

提交回复
热议问题