Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] NPE in surefire with 0.22

report it as a tycho bug with sample project attached and we will figure out if it's actually a surefire problem.

Regards
Jan

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Keppler Michael (ETAS/ESW4)
Sent: Dienstag, 16. Dezember 2014 09:08
To: Tycho user list
Subject: [tycho-user] NPE in surefire with 0.22

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


Back to the top