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

wuweijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git


The following commit(s) were added to refs/heads/master by this push:
     new ce4ce1380 Fix jacoco-maven-plugin doesn't work on Java >= 11 (#2146)
ce4ce1380 is described below

commit ce4ce13800adcaeb3107ff84dfd3e47f16835ed7
Author: 吴伟杰 <[email protected]>
AuthorDate: Mon Oct 31 14:58:22 2022 +0800

    Fix jacoco-maven-plugin doesn't work on Java >= 11 (#2146)
    
    * Fix jacoco-maven-plugin doesn't work in Java >= 11
    
    * Upload coverage in one case only
---
 .github/workflows/maven.yml | 1 +
 pom.xml                     | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index b37a9bc92..6852a7a5a 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -50,6 +50,7 @@ jobs:
         run: |
           ./mvnw --batch-mode --no-transfer-progress 
'-Dmaven.javadoc.skip=true' clean install
       - name: Upload coverage to Codecov
+        if: matrix.os == 'ubuntu-latest' && matrix.java == '8'
         uses: codecov/codecov-action@v3
         with:
           file: '**/target/site/jacoco/jacoco.xml'
diff --git a/pom.xml b/pom.xml
index c597462b5..8e60fb0cc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,7 @@
         <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
         <maven-resources-plugin.version>2.7</maven-resources-plugin.version>
         <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
-        <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
+        <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
         
<maven-surefire-report-plugin.version>2.18.1</maven-surefire-report-plugin.version>
         <maven-site-plugin.version>3.4</maven-site-plugin.version>
         <lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
@@ -698,7 +698,7 @@
                             <artifactId>maven-surefire-plugin</artifactId>
                             <configuration>
                                 <trimStackTrace>false</trimStackTrace>
-                                <argLine>--add-opens 
java.base/java.lang=ALL-UNNAMED --add-opens 
java.base/java.lang.reflect=ALL-UNNAMED --add-opens 
java.base/java.util=ALL-UNNAMED</argLine>
+                                <argLine>@{argLine} --add-opens 
java.base/java.lang=ALL-UNNAMED --add-opens 
java.base/java.lang.reflect=ALL-UNNAMED --add-opens 
java.base/java.util=ALL-UNNAMED</argLine>
                             </configuration>
                         </plugin>
                     </plugins>

Reply via email to