You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/10/23 14:29:04 UTC

[dubbo] branch master updated: [master] fix Corrupted STDOUT issue of maven-surefire-plugin (#9090)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 990c082  [master] fix Corrupted STDOUT issue of maven-surefire-plugin (#9090)
990c082 is described below

commit 990c08244a8a4e03c634760acabf17cf173d3f55
Author: zrlw <zr...@sina.com>
AuthorDate: Sat Oct 23 22:28:56 2021 +0800

    [master] fix Corrupted STDOUT issue of maven-surefire-plugin (#9090)
    
    * fix Corrupted STDOUT issue of maven-surefire-plugin
    
    * keep failsafe version same with surefire
    
    * recover maven_deploy_version
---
 pom.xml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 75e1d01..bc732e1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -112,7 +112,8 @@
         <file_encoding>UTF-8</file_encoding>
         <!-- Maven plugins -->
         <maven_jar_version>3.2.0</maven_jar_version>
-        <maven_surefire_version>2.22.2</maven_surefire_version>
+        <maven_surefire_version>3.0.0-M5</maven_surefire_version>
+        <maven_failsafe_version>3.0.0-M5</maven_failsafe_version>
         <maven_deploy_version>2.8.2</maven_deploy_version>
         <maven_compiler_version>3.8.1</maven_compiler_version>
         <maven_source_version>3.2.1</maven_source_version>
@@ -641,11 +642,15 @@
                 <plugin>
                     <artifactId>maven-surefire-plugin</artifactId>
                     <version>${maven_surefire_version}</version>
+                    <configuration>
+                        <!-- Activate the use of TCP to transmit events to the plugin to fix Corrupted STDOUT issue -->
+                        <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
+                    </configuration>
                 </plugin>
                 <!-- keep surefire and failsafe in sync -->
                 <plugin>
                     <artifactId>maven-failsafe-plugin</artifactId>
-                    <version>2.22.2</version>
+                    <version>${maven_failsafe_version}</version>
                 </plugin>
                 <plugin>
                     <artifactId>maven-clean-plugin</artifactId>