Hi all,
I experience a NPE in (non Tycho) surefire code after the upgrade to 0.22. I just want to know if the Tycho developers are interested in that or if I should instead
report that on the parent Maven Surefire project.
Caused by:
java.lang.NullPointerException
at org.apache.maven.plugin.surefire.util.ScannerUtil.processIncludesExcludes(ScannerUtil.java:68)
at org.apache.maven.plugin.surefire.util.DirectoryScanner.scan(DirectoryScanner.java:76)
at org.eclipse.tycho.surefire.TestMojo.scanForTests(TestMojo.java:892)
at org.eclipse.tycho.surefire.TestMojo.createSurefireProperties(TestMojo.java:847)
at org.eclipse.tycho.surefire.TestMojo.createEclipseInstallation(TestMojo.java:740)
at org.eclipse.tycho.surefire.TestMojo.execute(TestMojo.java:621)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
It is caused by an undefined property in the excludes configuration (this is the effective POM excerpt)
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>0.22.0</version>
<executions>
<execution>
<id>default-test</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<excludes>
<exclude>${test.excludes}</exclude> <!-- this causes the NPE -->
</excludes>
</configuration>
</execution>
</executions>
</plugin>
Ciao, Michael