[ http://jira.codehaus.org/browse/SUREFIRE-704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold closed SUREFIRE-704. --------------------------------------- Resolution: Fixed You *must* be using an old version of 2.8.2-SNAPSHOT, since this message is physically removed from the code in the most recent versions. Run with mvn -U to make sure you get the latest deployed 2.8.2-SNAPSHOT and/or make sure your local repository manager actually checks for updates. I just redeployed to r.a.o in case something went haywire last time I did so. I'm closing this again, since the message in your log file is not possible to get from the latest version of surefire. I'll be releasing 2.9 as soon as I finish my own testing, which should be in a day or two. And as usual, feel free to reopen ;) > maven surefire Error while executing forked tests.; nested exception is > java.lang.IllegalStateException: testSetStarting called twice > ------------------------------------------------------------------------------------------------------------------------------------- > > Key: SUREFIRE-704 > URL: http://jira.codehaus.org/browse/SUREFIRE-704 > Project: Maven Surefire > Issue Type: Bug > Components: Junit 4.x support > Affects Versions: 2.7.2 > Environment: Windows/Linux/SunOS > Reporter: S Daigle > Assignee: Kristian Rosenvold > Fix For: 2.8.2 > > Attachments: surefire-272.txt, surefire-failure.log, surefire.txt > > > We want to upgrade from our current 2.5 version of the maven-surefire-plugin > to something newer but cannot get past the error below. We've tried versions > 2.6, 2.7 up to and including 2.7.3-SNAPSHOT but they all fail. > When setting forkmode to "once" and redirectTestOutputToFile to "true", we > get the following error on multiple tests: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.7.3-SNAPSHOT:test > (default-test) on project api: Error while executing forked tests.; nested > exception is java.lang.IllegalStateException: testSetStarting called twice -> > [Help 1] > Please see the attachment for full "mvn -e test" output. > If we set the redirectTestOutputToFile to false, it works but we need this > option set to true. > Thanks -- 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