You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2021/12/17 22:18:00 UTC

[jira] [Updated] (SUREFIRE-1547) There should be no extensions on excludes, while doc examples show extensions.

     [ https://issues.apache.org/jira/browse/SUREFIRE-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Slawomir Jaranowski updated SUREFIRE-1547:
------------------------------------------
    Labels: waiting-for-feedback  (was: )

> There should be no extensions on excludes, while doc examples show extensions.
> ------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1547
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1547
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Tommy Svensson
>            Priority: Major
>              Labels: waiting-for-feedback
>
> I ran into a problem, and found the solution:
>  
> My pom started out like this:
>  
>  
> {code:java}
> <plugin>
>    <groupId>org.apache.maven.plugins</groupId>
>    <artifactId>maven-surefire-plugin</artifactId>
>    <version>2.22.0</version>
>    <configuration>
>        <excludes>
>            <exclude>**/RunBackendTest.groovy</exclude>
>        </excludes>
>      </configuration>
>  </plugin>
>   {code}
> This didn’t work in any way!
>  
> I copied the pom plugin configuration from this page: [https://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html]
>  
> But I finally solved the problem. My pom now looks like this:
>  
>  
> {code:java}
> <plugin>
>    <groupId>org.apache.maven.plugins</groupId>
>    <artifactId>maven-surefire-plugin</artifactId>
>    <version>2.22.0</version>
>    <configuration>
>        <excludes>
>            <exclude>**/RunBackendTest</exclude>
>        </excludes>
>    </configuration>
> </plugin>  {code}
> See the difference ? No extension on test file! But the above referenced maven documentation examples do include the extensions, which clearly does not work.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)