GeezerVison is showing github.com — Could not find artifact io.netty:netty-codec-native-quic · Issue #15306 · netty/netty
Could not find artifact io.netty:netty-codec-native-quic #15306DescriptionWhen trying to resolve the new netty-codec-http3, the failure below occurs
pom.xml
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http3</artifactId>
<version>4.2.2.Final-SNAPSHOT</version>
</dependency>
</dependencies>
[ERROR] Failed to execute goal on project netty-http3-example: Could not resolve dependencies for project org.example:netty-http3-example:jar:1.0-SNAPSHOT
[ERROR] dependency: io.netty:netty-codec-native-quic:jar:${os.detected.name}-${os.detected.arch}:4.2.2.Final-SNAPSHOT (compile)
[ERROR] Could not find artifact io.netty:netty-codec-native-quic:jar:${os.detected.name}-${os.detected.arch}:4.2.2.Final-SNAPSHOT in snapshot (https://central.sonatype.com/repository/maven-snapshots)
Reproducible example you can find here
https://github.com/violetagg/netty-http3-example Activitynormanmaurer commented on Jun 17, 2025 violetagg commented on Jul 8, 2025 @normanmaurer I'm still having issues with the dependencies. Now with 4.2.3.Final-SNAPSHOT, I'm seeing this exception
Exception in thread "main" java.lang.UnsatisfiedLinkError: failed to load the required native library
at io.netty.handler.codec.quic.Quic.ensureAvailability(Quic.java:87)
at io.netty.handler.codec.quic.QuicCodecBuilder.<init>(QuicCodecBuilder.java:66)
at io.netty.handler.codec.quic.QuicClientCodecBuilder.<init>(QuicClientCodecBuilder.java:33)
at io.netty.handler.codec.http3.Http3.newQuicClientCodecBuilder(Http3.java:160)
at org.example.Main.main(Main.java:7)
Caused by: java.lang.UnsatisfiedLinkError: could not load a native library: netty_quiche42_osx_aarch_64
at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:244)
at io.netty.handler.codec.quic.Quiche.loadNativeLibrary(Quiche.java:80)
at io.netty.handler.codec.quic.Quiche.<clinit>(Quiche.java:59)
at io.netty.handler.codec.quic.Quic.<clinit>(Quic.java:46)
... 4 more
Reproducible example: https://github.com/violetagg/netty-http3-example chrisvest commented on Jul 8, 2025 Making the computed native dependency not optional makes the repro pass, but I don't know if there are other undesirable downstream effects of doing that:
Index: codec-http3/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/codec-http3/pom.xml b/codec-http3/pom.xml
--- a/codec-http3/pom.xml (revision 9a52b3cd5396b1c5f17114a8718f9626ddaaadb2)
+++ b/codec-http3/pom.xml (date 1751997803806)
@@ -131,7 +131,6 @@
<version>${project.version}</version>
<classifier>${netty.quic.classifier}</classifier>
<scope>runtime</scope>
- <optional>true</optional>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>yawkat commented on Jul 9, 2025 requiring that users depend on the right artifact for their platform seems reasonable. Incubator depended on all platforms transitively. Reacted by Violeta Georgieva
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|