You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Olivier Lamy <ol...@apache.org> on 2026/06/05 07:53:39 UTC

[ANN] Apache Maven Surefire 3.6.0-M1 Released

The Apache Maven team is pleased to announce the release of
Apache Maven Surefire 3.6.0-M1.

Please note that this is a milestone release as it includes breaking changes.
We strongly encourage you to read the detailed guide on what's new and how
to upgrade here:
https://maven.apache.org/surefire/maven-surefire-plugin/whats-new-3-6-0.html

Project Homepage:
https://maven.apache.org/surefire/

Release Notes - Apache Maven Surefire 3.6.0-M1:
https://github.com/apache/maven-surefire/releases/tag/surefire-3.6.0-M1

Enjoy,

-The Apache Maven team

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Apache Maven Surefire 3.6.0-M1 Released

Posted by Olivier Lamy <ol...@apache.org>.
Hi,


On Sun, 7 Jun 2026 at 22:59, Gary Gregory <ga...@gmail.com> wrote:
>
> Hi All,
>
> What should the expectations be for compatibility with the current
> versions of the reporting plugin and the failsafe plugin?

Nothing should have changed on this side. Refactoring happened only on
internals.

>
> Gary
>
> On Fri, Jun 5, 2026 at 3:54 AM Olivier Lamy <ol...@apache.org> wrote:
> >
> > The Apache Maven team is pleased to announce the release of
> > Apache Maven Surefire 3.6.0-M1.
> >
> > Please note that this is a milestone release as it includes breaking changes.
> > We strongly encourage you to read the detailed guide on what's new and how
> > to upgrade here:
> > https://maven.apache.org/surefire/maven-surefire-plugin/whats-new-3-6-0.html
> >
> > Project Homepage:
> > https://maven.apache.org/surefire/
> >
> > Release Notes - Apache Maven Surefire 3.6.0-M1:
> > https://github.com/apache/maven-surefire/releases/tag/surefire-3.6.0-M1
> >
> > Enjoy,
> >
> > -The Apache Maven team
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Apache Maven Surefire 3.6.0-M1 Released

Posted by Gary Gregory <ga...@gmail.com>.
Hi All,

What should the expectations be for compatibility with the current
versions of the reporting plugin and the failsafe plugin?

Gary

On Fri, Jun 5, 2026 at 3:54 AM Olivier Lamy <ol...@apache.org> wrote:
>
> The Apache Maven team is pleased to announce the release of
> Apache Maven Surefire 3.6.0-M1.
>
> Please note that this is a milestone release as it includes breaking changes.
> We strongly encourage you to read the detailed guide on what's new and how
> to upgrade here:
> https://maven.apache.org/surefire/maven-surefire-plugin/whats-new-3-6-0.html
>
> Project Homepage:
> https://maven.apache.org/surefire/
>
> Release Notes - Apache Maven Surefire 3.6.0-M1:
> https://github.com/apache/maven-surefire/releases/tag/surefire-3.6.0-M1
>
> Enjoy,
>
> -The Apache Maven team
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Apache Maven Surefire 3.6.0-M1 Released

Posted by Olivier Lamy <ol...@apache.org>.
On Sat, 6 Jun 2026 at 19:55, Stanimir Stamenkov via users
<us...@maven.apache.org> wrote:
>
> Sat, 6 Jun 2026 19:14:27 +1000, /Olivier Lamy/:
>
> > I definitely know what the problem is, and was a bit scared of this :)
> > You can use something such
> > -Dsurefire.stackTraceMaxFrames=-1
> > I would say that every higher value is useful for JUnit 5+ when
> > parallel execution is enabled.
> > Long story short, the goal is to fix this
> > https://github.com/apache/maven-surefire/issues/3215
> > But in your case, using Junit4, it's not necessary.
> > I will try to find a way to improve this.
>
> Thank you for the explanation and the suggested setting – works the
> problem around for me.
>
> I'm not aware of the implementation details, but the property name
> suggests it is looking at the stack trace.  Maybe looking at the current
> thread and thread group could be more reliable, and faster.  It could be
> more reliable as the test itself may spawn a thread where the output
> happens.
>

It's already the case :)
I implemented what I didn't want to, because it's just another
reflection code because of Java 8 requirement
So for Java 9+ users, there will be usage of the lazy StackWalker, see
PR https://github.com/apache/maven-surefire/pull/3374
It's improving the default situation still not as fast though but
(except if we can find a really better solution, I have some ideas but
need to experiment them) we will probably need to disable this by
default as it's very useful only for junit 5+ users using the junit
parallel execution.

>
> > On Sat, 6 Jun 2026 at 16:51, Stanimir Stamenkov via users
> > <us...@maven.apache.org> wrote:
> >
> >> I've opened:
> >>
> >> -   https://github.com/apache/maven-surefire/issues/3373
> >>
> >> with the example I'm trying with.
>
> --
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Apache Maven Surefire 3.6.0-M1 Released

Posted by Stanimir Stamenkov via users <us...@maven.apache.org>.
Sat, 6 Jun 2026 19:14:27 +1000, /Olivier Lamy/:

> I definitely know what the problem is, and was a bit scared of this :)
> You can use something such
> -Dsurefire.stackTraceMaxFrames=-1
> I would say that every higher value is useful for JUnit 5+ when 
> parallel execution is enabled.
> Long story short, the goal is to fix this
> https://github.com/apache/maven-surefire/issues/3215
> But in your case, using Junit4, it's not necessary.
> I will try to find a way to improve this.

Thank you for the explanation and the suggested setting – works the 
problem around for me.

I'm not aware of the implementation details, but the property name 
suggests it is looking at the stack trace.  Maybe looking at the current 
thread and thread group could be more reliable, and faster.  It could be 
more reliable as the test itself may spawn a thread where the output 
happens.


> On Sat, 6 Jun 2026 at 16:51, Stanimir Stamenkov via users 
> <us...@maven.apache.org> wrote:
>
>> I've opened:
>>
>> -   https://github.com/apache/maven-surefire/issues/3373
>>
>> with the example I'm trying with.

-- 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Apache Maven Surefire 3.6.0-M1 Released

Posted by Olivier Lamy <ol...@apache.org>.
Thanks a lot for the report.
I definitely know what the problem is, and was a bit scared of this :)
You can use something such
-Dsurefire.stackTraceMaxFrames=-1
I would say that every higher value is useful for JUnit 5+ when
parallel execution is enabled.
Long story short, the goal is to fix this
https://github.com/apache/maven-surefire/issues/3215
But in your case, using Junit4, it's not necessary.
I will try to find a way to improve this.

On Sat, 6 Jun 2026 at 16:51, Stanimir Stamenkov via users
<us...@maven.apache.org> wrote:
>
> Sat, 6 Jun 2026 14:37:40 +1000, /Olivier Lamy/:
> > On Sat, 6 Jun 2026 at 03:52, Stanimir Stamenkov via users
> > <us...@maven.apache.org> wrote:
> >
> >> Comparing 3.5.6 and 3.6.0-M1, I'm noticing a very apparent slow down
> >> with (JUnit 4) tests that produce larger output (500K-1MB,
> >> maven.test.redirectTestOutputToFile=true).
> >
> > Does the slowdown happen with maven.test.redirectTestOutputToFile=false?
> > Can you create some issue with such report? Anything to reproduce
> > would be great.
>
> redirectTestOutputToFile=false appears to add a fixed overhead with both
> versions:
>
> maven-surefire-plugin | redirectTestOutputToFile | time
> ----------------------|--------------------------|------:
> 3.5.6                 | true                     |    17s
> 3.5.6                 | false                    |    37s
> 3.6.0-M1              | true                     |    57s
> 3.6.0-M1              | false                    | 1m 17s
>
> So doesn't appear a factor.  I've opened:
>
> -   https://github.com/apache/maven-surefire/issues/3373
>
> with the example I'm trying with.
>
> --
> Stanimir
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Apache Maven Surefire 3.6.0-M1 Released

Posted by Stanimir Stamenkov via users <us...@maven.apache.org>.
Sat, 6 Jun 2026 14:37:40 +1000, /Olivier Lamy/:
> On Sat, 6 Jun 2026 at 03:52, Stanimir Stamenkov via users 
> <us...@maven.apache.org> wrote:
>
>> Comparing 3.5.6 and 3.6.0-M1, I'm noticing a very apparent slow down 
>> with (JUnit 4) tests that produce larger output (500K-1MB, 
>> maven.test.redirectTestOutputToFile=true).
> 
> Does the slowdown happen with maven.test.redirectTestOutputToFile=false?
> Can you create some issue with such report? Anything to reproduce 
> would be great.

redirectTestOutputToFile=false appears to add a fixed overhead with both 
versions:

maven-surefire-plugin | redirectTestOutputToFile | time
----------------------|--------------------------|------:
3.5.6                 | true                     |    17s
3.5.6                 | false                    |    37s
3.6.0-M1              | true                     |    57s
3.6.0-M1              | false                    | 1m 17s

So doesn't appear a factor.  I've opened:

-   https://github.com/apache/maven-surefire/issues/3373

with the example I'm trying with.

-- 
Stanimir

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Apache Maven Surefire 3.6.0-M1 Released

Posted by Olivier Lamy <ol...@apache.org>.
Hi Stanimir,
Thanks for testing the M1 and reporting this.
We really appreciate it, and this is exactly the sort of feedback we
need for this milestone serie before final release

On Sat, 6 Jun 2026 at 03:52, Stanimir Stamenkov via users
<us...@maven.apache.org> wrote:
>
> Fri, 5 Jun 2026 17:53:39 +1000, /Olivier Lamy/:
>
> > The Apache Maven team is pleased to announce the release of
> > Apache Maven Surefire 3.6.0-M1.
> >
> > Please note that this is a milestone release as it includes breaking changes.
> > We strongly encourage you to read the detailed guide on what's new and how
> > to upgrade here:
> > https://maven.apache.org/surefire/maven-surefire-plugin/whats-new-3-6-0.html
> >
> > Release Notes - Apache Maven Surefire 3.6.0-M1:
> > https://github.com/apache/maven-surefire/releases/tag/surefire-3.6.0-M1
>
> Comparing 3.5.6 and 3.6.0-M1, I'm noticing a very apparent slow down
> with (JUnit 4) tests that produce larger output (500K-1MB,
> maven.test.redirectTestOutputToFile=true).
>

Does the slowdown happen with maven.test.redirectTestOutputToFile=false?
Can you create some issue with such report? Anything to reproduce
would be great.


> --
> Stanimir
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [ANN] Apache Maven Surefire 3.6.0-M1 Released

Posted by Stanimir Stamenkov via users <us...@maven.apache.org>.
Fri, 5 Jun 2026 17:53:39 +1000, /Olivier Lamy/:

> The Apache Maven team is pleased to announce the release of
> Apache Maven Surefire 3.6.0-M1.
> 
> Please note that this is a milestone release as it includes breaking changes.
> We strongly encourage you to read the detailed guide on what's new and how
> to upgrade here:
> https://maven.apache.org/surefire/maven-surefire-plugin/whats-new-3-6-0.html
> 
> Release Notes - Apache Maven Surefire 3.6.0-M1:
> https://github.com/apache/maven-surefire/releases/tag/surefire-3.6.0-M1

Comparing 3.5.6 and 3.6.0-M1, I'm noticing a very apparent slow down 
with (JUnit 4) tests that produce larger output (500K-1MB, 
maven.test.redirectTestOutputToFile=true).

-- 
Stanimir

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org