Skip to content

Commit 5f590b0

Browse files
Updated README to note Cobertura and JDK11 restriction
In order to use Cobertura with Travis, you must specify an earlier version of the JDK. Cobertura will not work with travis out of the box as Travis uses JDK 11 (currently). The build will fail with: ``` [ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument (default-cli) on project xbdd-maven-plugin: Execution default-cli of goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument failed: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:0 at specified path /usr/local/lib/jvm/openjdk11/../lib/tools.jar -> [Help 1] ```
1 parent a4d9cef commit 5f590b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Add to your `.travis.yml` file.
66
```yml
77
language: java
88

9+
# Cobertura is not supported in JDK11 so you must downgrade the JDK that Travis uses if you want to use Cobertura with Travis.
10+
jdk:
11+
- oraclejdk8
12+
- oraclejdk9
13+
- openjdk8
14+
915
script: "mvn cobertura:cobertura"
1016

1117
after_success:

0 commit comments

Comments
 (0)