My problem is that I want to run tests against those xslt files in testing phase. How can I achieve this?
There is nothing to do, target/classes
is on the class path of tests. More precisely, the class path for tests is:
- first
target/test-classes
- then
target/classes
- then
dependencies
So resources from src/main/resources
(which are copied into target/classes
) are visible from tests.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…