M. Z. created MATH-1489:
---------------------------
Summary: Test failure because of incompatible version
specification of JaCoCo in pom.xml
Key: MATH-1489
URL: https://issues.apache.org/jira/browse/MATH-1489
Project: Commons Math
Issue Type: Bug
Environment: OpenJDK 11.0.3
Debian GNU/Linux 9.9 stretch
Reporter: M. Z.
Attachments: commons-math-buildlog-2019-06-15.log
I've experienced constant build failures on the attempt to "mvn clean package"
on a working copy of [http://gitbox.apache.org/repos/asf/commons-math.git] (
commit 4b0f52c0dd9df564d58140e1d717a2da218f0139 )
It has to do with the specified version of jacoco in pom.xml. See attached
buildlog for concrete error.
My solution:
$ git diff
--- a/pom.xml
+++ b/pom.xml
@@ -493,7 +493,7 @@
<math.mathjax.version>2.7.2</math.mathjax.version>
<!-- Temporary fix to support Java 8 -->
- <commons.jacoco.version>0.8.0</commons.jacoco.version>
+ <commons.jacoco.version>0.8.4</commons.jacoco.version>
<commons.jacoco.classRatio>0.96</commons.jacoco.classRatio>
<commons.jacoco.instructionRatio>0.8</commons.jacoco.instructionRatio>
<commons.jacoco.methodRatio>0.8</commons.jacoco.methodRatio>
See
[https://stackoverflow.com/questions/55272870/surefire-maven-plugin-corrupted-stdout-by-directly-writing-to-native-stream-in]
for a previously reported issue with the use jacoco and OpenJDK 11.
After the proposed change, I've got
$ mvn clean package
....
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] FastMathTest.checkMissingFastMathClasses:1275 FastMath should
implement all StrictMath methods
[INFO]
[ERROR] Tests run: 4864, Failures: 1, Errors: 0, Skipped: 31
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
...
So tests should have been executed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)