Surefire swallows serious errors in fork mode "once" ----------------------------------------------------
Key: SUREFIRE-410 URL: http://jira.codehaus.org/browse/SUREFIRE-410 Project: Maven Surefire Issue Type: Bug Components: classloading Affects Versions: 2.3 Reporter: Yuri Schimke suerfire-reports is not created, so there is no where to check the error [INFO] [surefire:test] [INFO] Surefire report directory: C:\p4store\...\target\surefire-reports [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. [INFO] ------------------------------------------------------------------------ The only way I see the actual error, is by setting forkMode=never. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to instantiate POJO 'class com.XXX.TestAp plicationEvent'; nested exception is java.lang.InstantiationException: com.XXX.TestApplicationEvent; nested exception is org.apache.mav en.surefire.testset.TestSetFailedException: Unable to instantiate POJO 'class co m.XXXX.TestApplicationEvent'; nested exception is java.l ang.InstantiationException: com.XXX.TestApplicationEven t In this case the exception is caused by surefire detecting TestApplicationEvent as a test when it is not. Once I adjusted the excludes, I got the tests running. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira