[
https://issues.apache.org/jira/browse/SUREFIRE-2158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17704678#comment-17704678
]
Jeremy Norris commented on SUREFIRE-2158:
-----------------------------------------
Execute {{mvn surefire:test}} with the following {{pom.xml}}:
{{<?xml version="1.0" encoding="UTF-8"?>}}
{{<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">}}
{{ <modelVersion>4.0.0</modelVersion>}}
{{ <groupId>foo</groupId>}}
{{ <artifactId>bar</artifactId>}}
{{ <version>1.0.0</version>}}
{{ <packaging>jar</packaging>}}
{{ <properties>}}
{{ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>}}
{{
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>}}
{{ <maven.compiler.source>17</maven.compiler.source>}}
{{ <maven.compiler.target>17</maven.compiler.target>}}
{{ <maven.compiler.release>17</maven.compiler.release>}}
{{ </properties>}}
{{ <dependencies>}}
{{ <dependency>}}
{{ <groupId>org.junit.jupiter</groupId>}}
{{ <artifactId>junit-jupiter</artifactId>}}
{{ <version>5.9.2</version>}}
{{ <scope>test</scope>}}
{{ </dependency>}}
{{ <dependency>}}
{{ <groupId>org.junit.platform</groupId>}}
{{ <artifactId>junit-platform-runner</artifactId>}}
{{ <version>1.9.2</version>}}
{{ <scope>test</scope>}}
{{ </dependency>}}
{{ </dependencies>}}
{{ <build>}}
{{ <plugins>}}
{{ <plugin>}}
{{ <groupId>org.apache.maven.plugins</groupId>}}
{{ <artifactId>maven-surefire-plugin</artifactId>}}
{{ <version>3.0.0</version>}}
{{ <configuration>}}
{{ <excludedGroups>foo</excludedGroups>}}
{{ </configuration>}}
{{ </plugin>}}
{{ </plugins>}}
{{ </build>}}
{{</project>}}
> excludedGroups parameter no longer works
> ----------------------------------------
>
> Key: SUREFIRE-2158
> URL: https://issues.apache.org/jira/browse/SUREFIRE-2158
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 3.0.0
> Environment: n/a
> Reporter: Jeremy Norris
> Priority: Critical
> Fix For: waiting-for-feedback
>
>
> Specifying {{<excludedGroups>foo</excludedGroups>}} in the Surefire
> configuration no longer works with JUnit 5 {{@Tag}}'d tests.
> Surefire now spits out the following and fails to execute any unit tests:
> {{[WARNING] Couldn't load group class 'foo' in Surefire|Failsafe plugin. The
> group class is ignored!}}
> With manual bisection seems to indicate this functionality was lost in the
> 3.0.0-M5 release.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)