Skip to content

Commit 6205d83

Browse files
committed
! fix jacoco-maven-plugin:report do not append append
1 parent c8623ce commit 6205d83

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/codecov.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ cd "$(dirname "$(readlink -f "$0")")"
55
source ./common_build.sh
66
source ./prepare-jdk.sh
77

8+
cd "$ROOT_PROJECT_DIR"
9+
810
switch_to_jdk 11
11+
runCmd "${MVN_CMD[@]}" -Pgen-code-cov clean test jacoco:report
912

10-
cd "$ROOT_PROJECT_DIR"
11-
runCmd ./mvnw -Pgen-code-cov clean test jacoco:report coveralls:report
13+
switch_to_jdk 8
14+
# use -Dmaven.main.skip option fix below problem of jacoco-maven-plugin:report :
15+
#
16+
# [WARNING] Classes in bundle 'Java Dns Cache Manipulator(DCM) Lib' do not match with execution data.
17+
# For report generation the same class files must be used as at runtime.
18+
# [WARNING] Execution data for class com/alibaba/xxx/Yyy does not match.
19+
runCmd "${MVN_CMD[@]}" -Pgen-code-cov -Dmaven.main.skip test jacoco:report coveralls:report

0 commit comments

Comments
 (0)