You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2015/06/22 01:49:00 UTC

[jira] [Closed] (SUREFIRE-505) Excludes Surefire reports for POM files with pom packaging

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

Tibor Digana closed SUREFIRE-505.
---------------------------------
    Resolution: Won't Fix

We accepted a bug fix where project with pom packaging is still qualified as regular test project if specifying dependencies to scan.
Therefore please manage the skip options by this script without forcing us to fix it in surefire:

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<configuration>
           <skipSurefireReport>${isPomPackaging}</skipSurefireReport>
</configuration>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>bsh-property</goal>
                        </goals>
                        <configuration>
                            <properties>
                                <property>isPomPackaging</property>
                            </properties>
                            <source>
                                <![CDATA[
                                  isPomPackaging = "" + "pom".equals(project.getPackaging());
                                ]]>
                            </source>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

> Excludes Surefire reports for POM files with pom packaging
> ----------------------------------------------------------
>
>                 Key: SUREFIRE-505
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-505
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Surefire Report Plugin
>    Affects Versions: 2.4.3
>            Reporter: Siveton Vincent
>
> need to implement canGenerateReport()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)