I tried to follow your 2nd advice: added <data>${basedir}/src/test/data</data> into surefire <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.3</version> <configuration> <forkMode>never</forkMode> <reportFormat>xml</reportFormat> <failIfNoTests>true</failIfNoTests> <data>${project.basedir}/src/test/data</data> </configuration> </plugin> but I got NULL while printing System.out.println("DATA PROPERTY "+System.getProperty("data")); -- View this message in context: http://maven.40175.n5.nabble.com/FileNotFoundException-while-reading-static-input-file-in-JUnit-tp3378700p3378726.html Sent from the Maven - Users mailing list archive at Nabble.com.
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org