I have a project containing pom.xml and some JUnit tests. Both pom.xml and unit tests are corrects. But problem is that tests are not in src/test/java folder (I cannot use this folder). Is it possible to tell maven to execute tests from another source folder (which is also in this project)?
I have a project containing pom.xml and some JUnit tests. Both pom.xml and unit
Share
It is enough to add this part to your pom:
The test sources will be compiled during the
test-compilephase and themaven-surefire-pluginwill find the test classes too.