Thank you for your replies and advises, Wayne and Kristian.

First, I must apologize. By the further analysis of the test log, I found
that the failure log snippet in my previous post wasn't the one of the
failed test. And found out that it's not switching the thread unexpectedly.
I'm really sorry.

And the test failure was not repro after updating the dependency and plugin.

> Can you try Maven 3.0.4 and Surefire 2.12?
It didn't repro after I updated the version of following dependency and
plugin:
    org.aspectj:aspectjtools:1.6.12 -> 1.7.0
    org.apache.maven.plugins:maven-compiler-plugin:2.3.2 -> 2.5.1
I also updated surefire to 2.12 from 2.11, but I encountered the test
failure with using surefire 2.12 at first. I just used 2.11 to check
whether this could repro when it executed as single test by using -Dtest
command line option since surefire 2.12's bug:
https://jira.codehaus.org/browser/SUREFIRE-827 (and SUREFIRE-760).

Warm regards,
Arata

On Thu, Jul 26, 2012 at 4:21 PM, Kristian Rosenvold <
[email protected]> wrote:

> The *only* way to make surefire use threads is to set the <parallel>
> attribute to some legal value. Use mvn help:effective-pom to see if
> this is set. I can see from your log output that this is not set, so
> this is something happening in your code/libs.
>
> I might suggest using -Dmaven.surefire.debug=true and attach a
> debugger to the tests in question to inspect the call stack/threads to
> find out WTF is going on.
>
> Kristian
>
>
> 2012/7/27 Wayne Fay <[email protected]>:
> >> Maven version 3.0.1
> >> maven-surefire-plugin version 2.11
> >> I haven't set other than exclude and include optional parameters of
> >> surefire.
> >> JUnit 4.10
> >> So, I believe that surefire is using junit 4 provider.
> >> JRE version 1.6
> >> OS: Windows XP
> >
> > Can you try Maven 3.0.4 and Surefire 2.12? Also perhaps try specifying
> > forkMode=never in Surefire. And finally check "mvn help:effective-pom"
> > to be certain there is not some additional Surefire configuration
> > coming in from a parent etc that you did not even realize is impacting
> > your build.
> >
> > Hopefully Kristian will see this thread, he is the expert in these
> areas... :)
> >
> > Wayne
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to