Maven build failing from missing cobertura dependency

The build for https://travis-ci.org/jafl/language_game has started failing:

[ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument (default-cli) on project language-game:
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

Did something recently change in the system configuration? It was working a few months ago.

The path /usr/local/lib/jvm/openjdk11/../lib/tools.jar looks strange, the right path seems to be openjdk11/lib/tools.jar.

Then, you are getting a warning that your project is malformed and “may not be supported in the future”. Java moved 3 versions since your last successful build (that used Java 1.8) so it’s quite possible that moment has come.
It’s also possible that the plugin version you are using doesn’t support this new JDK version.
Can you build it locally with the same system configuration (i.e. with openjdk11)?

Finally, you can move back to dist: trusty with the old Java version – though this means your project may run into problems when run with newer JRE versions.

Moving back to trusty worked. cobertura hasn’t been updated in a long time, so you might be right that it’s not compatible with openjdk11.

Thanks!