Maven - Add directory to classpath while executing tests

Viewed 75359

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 classpath before running the tests?

6 Answers

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.

Related