-
Notifications
You must be signed in to change notification settings - Fork 580
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
ehcache 3.9.1 strange jaxb-runtime version dependency / compile error #2881
Comments
In 3.9.1 the jaxb-runtime dependency changed from a specific |
that's true, but first i never used maven.java.net (i also grep -r "maven.java.net" in the whole project without result) and second why is that really old beta version choosed? |
I don't think it's necessarily choosing that version. I think it's simply pulling the pom for that version as part of dependency resolution. Regarding why it's accessing |
Thanks for the help, i couldn't find anything about jaxb or java.net in that output too, |
If you're running on Java 8 (or on Java 9 and want to add the internal jaxb to the module path) then you can exclude the jaxb-runtime dependency. This is only here to avoid failures on Java 11 environments. |
Like so?
|
Yes, that should work. |
We have a similar issue with Ehcache 3.10.2:
We have analysed the root cause: The effect that the Maven build is accessing repositories like http://maven.java.net or http://bits.netbeans.org/nexus/content/groups/netbeans is not caused by the local Maven configuration. In fact the parent POM of @chrisdennis, you may be right that this old beta version will not actually be "chosen" in the end, but since it is defining some invalid repositories, the version range processing fails at this point. A workaround which is also valid for Java 17 is to define an explicit version for Wouldn't it be a good idea to at least restrict the version range so that only versions without repository definitions are included? |
doing this in a patch release is really really bad - this should have only been done in 3.10 release! |
This or a very similar error still happens for us, we are relying on the latest version of CXF security that still supports the javax namespace instead of the jakarte namespace, specifically CXF 3.6.x (they all use ehcache 3.10.8): (no settings.xml was used, and
Since CXF pulls in a different version of the jaxb-runtime (cxf-core directly requires jaxb-runtime 2.3.8) anyway, i think that it can be safely excluded in CXF security if there exist other CXF dependencies in the POM, like shown by previous commenters:
|
after upgrade 3.9.0 -> 3.9.1 i get strange compile error:
Failed to collect dependencies at org.ehcache:ehcache:jar:3.9.1 -> org.glassfish.jaxb:jaxb-runtime:jar:2.3.0-b170127.1453 -> org.glassfish.jaxb:jaxb-core:jar:2.3.0-b170127.1453 -> javax.xml.bind:jaxb-api:jar:2.3.0-b161121.1438: Failed to read artifact descriptor for javax.xml.bind:jaxb-api:jar:2.3.0-b161121.1438: Could not transfer artifact javax.xml.bind:jaxb-api:pom:2.3.0-b161121.1438 from/to releases.java.net (http://maven.java.net/content/repositories/releases/): Transfer failed for http://maven.java.net/content/repositories/releases/javax/xml/bind/jaxb-api/2.3.0-b161121.1438/jaxb-api-2.3.0-b161121.1438.pom: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed: NotAfter: Fri Feb 19 13:00:00 CET 2021
The text was updated successfully, but these errors were encountered: