[
https://issues.apache.org/jira/browse/SUREFIRE-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed SUREFIRE-2124.
------------------------------------
Resolution: Fixed
Fixed with
[5f64810fdca1c942eabf0f81394581e8238b2783|https://gitbox.apache.org/repos/asf?p=maven-surefire.git&a=commit&h=5f64810fdca1c942eabf0f81394581e8238b2783].
> Avoid creating unnecessary target files for pom projects
> --------------------------------------------------------
>
> Key: SUREFIRE-2124
> URL: https://issues.apache.org/jira/browse/SUREFIRE-2124
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin
> Affects Versions: 2.22.2
> Reporter: Alexis Jehan
> Assignee: Michael Osipov
> Priority: Minor
> Fix For: 3.3.1
>
>
> Because pom projects do not have tests, It is not necessary to create the
> "target/failsafe-reports/failsafe-summary.xml" file for these projects.
> The behavior should be the same as the surefire plugin which works as
> expected.
> Maven configuration:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-failsafe-plugin</artifactId>
> <version>2.22.2</version>
> <configuration>
> <!--suppress UnresolvedMavenProperty -->
> <argLine>${argLine} --enable-preview</argLine>
> </configuration>
> <executions>
> <execution>
> <id>failsafe-integration-test</id>
> <goals>
> <goal>integration-test</goal>
> </goals>
> </execution>
> <execution>
> <id>failsafe-verify</id>
> <goals>
> <goal>verify</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
> Maven output:
> {noformat}
> [INFO] --- maven-failsafe-plugin:2.22.2:integration-test
> (failsafe-integration-test) @ parent-project ---
> [INFO] No tests to run.
> {noformat}
> Content of generated {{target/failsafe-reports/failsafe-summary.xml}} :
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <failsafe-summary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/failsafe-summary.xsd"
> result="254" timeout="false">
> <completed>0</completed>
> <errors>0</errors>
> <failures>0</failures>
> <skipped>0</skipped>
> <failureMessage xsi:nil="true"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> </failsafe-summary>
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)