Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cobertura-maven-plugin does not build with JDK 9-EA #30

Open
simontunnat opened this issue Feb 26, 2017 · 1 comment
Open

cobertura-maven-plugin does not build with JDK 9-EA #30

simontunnat opened this issue Feb 26, 2017 · 1 comment

Comments

@simontunnat
Copy link

When I try to build the plugin with the JDK 9 I the following error message:

[ERROR] Failed to execute goal on project cobertura-maven-plugin: Could not resolve dependencies for project org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.8-SNAPSHOT: Could not find artifact com.sun:tools:jar:0 at specified path /usr/lib/jvm/java-9-jdk/../lib/tools.jar -> [Help 1]

@simontunnat
Copy link
Author

simontunnat commented Feb 26, 2017

Probably related to cobertura/cobertura#271

stefanb added a commit to makumba/makumba that referenced this issue Dec 17, 2018
keeganwitt added a commit to groovy/GMavenPlus that referenced this issue May 5, 2019
kaitoy added a commit to kaitoy/pcap4j that referenced this issue May 6, 2019
vkopichenko added a commit to vkopichenko/Generex that referenced this issue Jul 2, 2019
…553253525

[ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.6:instrument (verification) on project generex: Execution verification of goal org.codehaus.mojo:cobertura-maven-plugin:2.6:instrument failed: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.6 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

Had to switch from cobertura to jacoco due to mojohaus/cobertura-maven-plugin#30 still not resolved.

Plus minor build and javadoc improvements.
eis added a commit to eis/spring-boot-security-example that referenced this issue Jan 1, 2021
Cobertura apparently hasn't had java 9+ support
ever and still does not. Jacoco can perform the
same functionality, so we go with that.

cobertura/cobertura#271
mojohaus/cobertura-maven-plugin#30
https://stackoverflow.com/questions/43630262/how-to-exclude-a-direct-dependency-of-a-maven-plugin

Fixes #3.
icmdaf added a commit to icmdaf/acai that referenced this issue Feb 12, 2021
Cobertura doesn't support java past 8:
mojohaus/cobertura-maven-plugin#30

Setting up as per Coveralls docs:
https://github.com/trautonen/coveralls-maven-plugin#jacoco

Need to bump requireMavenVersion for Jacoco plugin per `mvn versions:display-plugin-updates`
nlativy pushed a commit to google/acai that referenced this issue Feb 12, 2021
* Re-enable Errorprone

Following https://errorprone.info/docs/installation

This works locally as well!

(I believe the issue this didn't work before was that I hadn't removed
the old dependency on 2.2.0 in the dependencies list and it clashed with
2.5.1 as specified in annotationProcessorPaths)

* Add JDK 8 workaround

See http://errorprone.info/docs/installation
and google/error-prone#2184 (comment)

* Bump plugin versions

* Switch from Cobertura to Jacoco

Cobertura doesn't support java past 8:
mojohaus/cobertura-maven-plugin#30

Setting up as per Coveralls docs:
https://github.com/trautonen/coveralls-maven-plugin#jacoco

Need to bump requireMavenVersion for Jacoco plugin per `mvn versions:display-plugin-updates`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant