[
https://jira.codehaus.org/browse/SUREFIRE-988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=323753#comment-323753
]
Andreas Gudian commented on SUREFIRE-988:
-----------------------------------------
Try this:
{{<excludeGroups>org.example.Categories$ExcludeMe</excludeGroups>}}
It is the actual Java class name of your interface.
> ClassNotFoundException when excluding a JUnit category that is defined by a
> static inner class or a static inner interface
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-988
> URL: https://jira.codehaus.org/browse/SUREFIRE-988
> Project: Maven Surefire
> Issue Type: Bug
> Affects Versions: 2.14.1
> Reporter: Jim Hurne
> Priority: Minor
>
> The maven-surefire-plugin will fail with a ClassNotFoundException if you
> configure the plugin to exclude a JUnit category which is defined as an inner
> class or interface.
> For example, if I define the following "category":
> package org.example
> public class Categories {
> public static interface ExcludeMe {}
> }
> And then I configure the Surefire plugin to exclude the inner class category:
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.14.1</version>
> <configuration>
> <excludeGroups>org.example.Categories.ExcludeMe</excludeGroups>
> </configuration>
> </plugin>
> Then the Surefire plugin will fail with a ClassNotFoundException. If I move
> ExcludeMe out of the Categories class, then all is well.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira