Skip to content

[regression] excludedGroups configuration parameter has no effectΒ #3503

Closed

Description

@ok2c

Affected version

3.6.0

Bug description

After upgrade from 3.5.0 to 3.6.0 excludedGroups config element appear to no longer have any effect.

The cases tagged with the tags listed in excludedGroups get executed though they do not with 3.5.0 (as expected).

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>3.6.0</version>
        <configuration>
          <excludedGroups>slow,time-out,stale-conn</excludedGroups>
        </configuration>
      </plugin>

The problem should be reproducible with the master branch of Apache HttpClient

I could not find anything related to excluded groups or tag exclusion in the 3.6.0 release notes.

https://maven.apache.org/surefire/maven-surefire-plugin/whats-new-3-6-0.html
https://github.com/apache/httpcomponents-client/blob/master/pom.xml#L450

Activity

  1. added
    bugSomething isn't working
    on Oct 2, 2026
  2. self-assigned this
    on Oct 3, 2026
  3. changed the title [-][regression][/-] [+][regression] excludedGroups configuration parameter has no effect[/+] on Oct 3, 2026
  4. cortlepp commented on Oct 9, 2026

    @cortlepp
    Member

    I just wanted to say that I can reproduce the issue when upgrading from 3.5.6 to 3.6.0, so it was definitely introduced in 3.6.0 . As far as I can tell though the excludedGroups aren't always ignored, it depends on the rest of the configuration (I haven't figured out on what exactly).

  5. olamy commented on Oct 10, 2026

    @olamy
    Member

    Well, this can be "fixed", but the issue with the given project is testcontainers bringing junit:junit here.
    There are 2 workarounds:

    • Upgrade to Testcontainers 2.x
    • Add junit-vintage-engine as a test dep

    Anyway the fix for #3468 will fix this as well.

  6. ok2c commented on Oct 10, 2026

    @ok2c
    MemberAuthor

    @olamy Much appreciated. I will look into Testcontainers upgrade.

  7. olamy commented on Oct 10, 2026

    @olamy
    Member

    @olamy Much appreciated. I will look into Testcontainers upgrade.

    no worries. you can try this PR this should fix the issue #3517

  8. ok2c commented on Oct 10, 2026

    @ok2c
    MemberAuthor

    @olamy Testcontainers upgrade to 2.0.5 fixed the issue for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions