You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "pratyuxxhh (via GitHub)" <gi...@apache.org> on 2025/11/02 09:58:22 UTC
[D] [Q/A] Build fails with unresolved Netty native QUIC dependency on JDK 25 [dubbo]
GitHub user pratyuxxhh created a discussion: [Q/A] Build fails with unresolved Netty native QUIC dependency on JDK 25
### Pre-check
- [X] I am sure that all the content I provide is in English.
### Apache Dubbo Component
Java SDK (apache/dubbo)
### Details
Hi everyone
I'm currently working on upgrading Dubbo to build successfully with JDK 25 (on my fork, branch `jdk-25`).
During the build process, Maven fails with the following error:
'''
io.netty:netty-codec-native-quic:jar:${os.detected.name}-${os.detected.arch}:4.2.2.Final was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced
'''
I tried forcing updates with `./mvnw clean install -U -DskipTests` and verified that `os-maven-plugin` is declared, but the placeholders (`${os.detected.name}` and `${os.detected.arch}`) don’t seem to be resolving correctly.
Environment:
- JDK 25 (early access)
- Maven Wrapper from Dubbo repo
- OS: Windows 11 x64
Could this be related to the plugin version, or should the Netty dependency be adjusted for newer JDKs?
Any guidance or confirmation would be appreciated
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
GitHub link: https://github.com/apache/dubbo/discussions/15749
----
This is an automatically sent email for notifications@dubbo.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@dubbo.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [D] [Q/A] Build fails with unresolved Netty native QUIC dependency on JDK 25 [dubbo]
Posted by "pratyuxxhh (via GitHub)" <gi...@apache.org>.
GitHub user pratyuxxhh added a comment to the discussion: [Q/A] Build fails with unresolved Netty native QUIC dependency on JDK 25
Thank you for your suggestion. However, I’m still encountering the same error. After switching my JDK to version 21 and running the clean install command, the build finally succeeded.
Is it just me, or is anyone else also facing build errors with JDK 25?
GitHub link: https://github.com/apache/dubbo/discussions/15749#discussioncomment-14869691
----
This is an automatically sent email for notifications@dubbo.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@dubbo.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [D] [Q/A] Build fails with unresolved Netty native QUIC dependency on JDK 25 [dubbo]
Posted by "zrlw (via GitHub)" <gi...@apache.org>.
GitHub user zrlw added a comment to the discussion: [Q/A] Build fails with unresolved Netty native QUIC dependency on JDK 25
Try ```./mvnw -e --batch-mode --no-snapshot-updates --no-transfer-progress --fail-fast -T 2C clean install -P skip-spotless -Dmaven.test.skip=true -Dcheckstyle.skip=true -Dcheckstyle_unix.skip=true -Drat.skip=true```
refer to the mvn command at https://github.com/apache/dubbo/blob/3.3/.github/workflows/build-and-test-scheduled-3.3.yml
But i doubt that it could be compiled with JDK25 if you don't upgrade Netty to the latest version, the ```Unsafe``` that older Nettys depend on had been removed from JDK25 totally.
GitHub link: https://github.com/apache/dubbo/discussions/15749#discussioncomment-14867272
----
This is an automatically sent email for notifications@dubbo.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@dubbo.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org