Hi, I have this pom:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>mygroup</groupId> <artifactId>tests</artifactId> <version>0.20-SNAPSHOT</version> <packaging>jar</packaging> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <type>jar</type> <scope>test</scope> </dependency> </dependencies> <build> <sourceDirectory>src/main/java</sourceDirectory> <testSourceDirectory>src/test/java</testSourceDirectory> <testResources> <testResource> <directory>src/test/resources</directory> <includes> <include>**/*.properties</include> </includes> </testResource> </testResources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0-alpha-3</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> </project> And 2 properties files in src/test/resources/ and src/test/resources/a/b/c/. When I run "m2 test" the following always returns null: InputStream inputStream = ClassLoader.getSystemResourceAsStream("a/b/c/myTest.properties"); System.out.println("**** " + inputStream); // null inputStream = ClassLoader.getSystemResourceAsStream("myTest.properties"); System.out.println("**** " + inputStream); // null This works in eclipse and the properties files are indeed copied into target/test-classes/ and target/test-classes/a/b/c/. I cannot figure out what is wrong... David DIDIER --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]